Method: Cyborg::Assets::Javascripts#build_command
- Defined in:
- lib/cyborg/plugin/assets/javascripts.rb
#build_command(file) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/cyborg/plugin/assets/javascripts.rb', line 67 def build_command(file) dest = destination(file).sub(/\.js$/,'') = "--standalone #{plugin.name} -o #{dest}.js -d" cmd = if Cyborg.production? npm_path "browserify #{file} #{} -t" else npm_path "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{}" end puts "Running: #{cmd}" cmd end |