diff options
| author | mrmr1993 | 2015-08-13 21:59:34 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2015-08-13 21:59:34 +0100 | 
| commit | 2f990121abbb403d7c7e0304cf629b84ea0dde59 (patch) | |
| tree | 194c2e37814d4a11f5a682dc32569e62524735fc | |
| parent | 718c883abc489d4602f7cf95e059997c50ee72fd (diff) | |
| download | vimium-2f990121abbb403d7c7e0304cf629b84ea0dde59.tar.bz2 | |
Remove an unused function, restructure to be like the execSync code
| -rw-r--r-- | Cakefile | 13 | 
1 files changed, 3 insertions, 10 deletions
| @@ -20,14 +20,6 @@ spawn = (procName, optArray, silent = false, sync = false) ->        proc.stderr.on 'data', (data) -> process.stderr.write data    proc -spawnMultiple = (spawnDetailsArray, callback) -> -  return callback?() if spawnDetailsArray.length == 0 -  {procName, optArray, silent} = spawnDetailsArray.shift() -  process = spawn procName, optArray, silent -  process.on 'exit', (returnCode) -> -    if returnCode == 0 -      spawnMultiple spawnDetailsArray, callback -  optArrayFromDict = (opts) ->    result = []    for key, value of opts @@ -73,14 +65,15 @@ task "package", "Builds a zip file for submission to the Chrome store. The outpu    invoke "build" +  spawn "rm", ["-rf", "dist/vimium"], false, true +  spawn "mkdir", ["-p", "dist/vimium"], false, true +    blacklist = [".*", "*.coffee", "*.md", "reference", "test_harnesses", "tests", "dist", "git_hooks",                 "CREDITS", "node_modules", "MIT-LICENSE.txt", "Cakefile"]    rsyncOptions = [].concat.apply(      ["-r", ".", "dist/vimium"],      blacklist.map((item) -> ["--exclude", "#{item}"])) -  spawn "rm", ["-rf", "dist/vimium"], false, true -  spawn "mkdir", ["-p", "dist/vimium"], false, true    spawn "rsync", rsyncOptions, false, true    spawn "zip", ["-r", "dist/vimium-#{vimium_version}.zip", "dist/vimium"], false, true | 
