-
Notifications
You must be signed in to change notification settings - Fork 1
/
nofile.coffee
38 lines (29 loc) · 724 Bytes
/
nofile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# nofile-pre-require: coffee-script/register
kit = require 'nokit'
module.exports = (task) ->
task 'test', 'Basic test', ->
kit.spawn('mocha', [
'-r'
'coffee-script/register'
'-R', 'spec'
'test/*.coffee'
]).catch ({ code }) ->
process.exit code
task 'benchmark', 'Performance benchmark', ->
kit.spawn 'coffee', [
'./benchmark/basic.coffee'
]
task 'build', 'Compile coffee to js', ->
kit.log "Compile coffee..."
kit.spawn 'coffee', [
'-cb'
'lib'
]
task 'clean', 'Clean js', ->
kit.log "Clean js..."
kit.remove 'lib', { filter: '**/*.js' }
task 'dev', 'Start test server', ->
kit.monitorApp {
args: ['./bin/jdb.js']
watchList: ['lib/*.coffee', 'bin/jdb.js']
}