diff --git a/Cakefile b/Cakefile index 43175ae..93bc9c0 100644 --- a/Cakefile +++ b/Cakefile @@ -1,19 +1,12 @@ -{spawn, exec} = require('child_process') +{spawn, exec} = require 'child_process' -execcb = (err, stdout, stderr) -> - throw err if err +task 'build', 'Build project from src/*.coffee to lib/*.js', -> + exec 'coffee -o lib -c src', (err) -> throw err if err datacb = (data) -> console.log data.toString().replace /\s+$/, '' -task 'build', 'Build project from src/*.coffee to lib/*.js', -> - exec 'coffee -o lib -c src', execcb - exec 'coffee -c scripts', execcb - task 'watch', 'Build and watch for changes', -> child = spawn 'coffee', ['-w', '-o', 'lib', '-c', 'src'] child.stdout.on 'data', datacb child.stderr.on 'data', datacb - child2 = spawn 'coffee', ['-w', '-c', 'scripts'] - child2.stdout.on 'data', datacb - child2.stderr.on 'data', datacb diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/example/download.js b/example/download.js old mode 100755 new mode 100644 diff --git a/example/info.js b/example/info.js old mode 100755 new mode 100644 diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/src/youtube-dl.coffee b/src/youtube-dl.coffee old mode 100755 new mode 100644 diff --git a/test/download.coffee b/test/download.coffee old mode 100755 new mode 100644 diff --git a/test/info.coffee b/test/info.coffee old mode 100755 new mode 100644