Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (20 sloc) 815 Bytes
DEV_DIRS = ['lib','test']
COFFEE_PATHS = DEV_DIRS.concat ['index.coffee']
JS_PATHS = DEV_DIRS.concat ['index.js']
TEST_ENV = ['test/sync-test.coffee']
u = require 'sv-cake-utils'
task 'compile', 'Compile All coffee files', ->
u.coffee.compile COFFEE_PATHS
task 'compile:watch', 'Compile All coffee files and watch for changes', ->
u.coffee.compile COFFEE_PATHS, watch:true
task 'clean', 'Remove all js files', ->
u.js.clean JS_PATHS
task 'test', 'Run All tests', ->
u.mocha.test 'test/unit', (status) ->
process.exit status unless status is 0
task 'test:sauce', 'Run Sauce Labs integration test', ->
u.mocha.test 'test/sauce', (status) ->
process.exit status unless status is 0
task 'grep:dirty', 'Lookup for debugger and console.log in code', ->
u.grep.debug()
u.grep.log()