-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCakefile
More file actions
21 lines (17 loc) · 721 Bytes
/
Cakefile
File metadata and controls
21 lines (17 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{spawn, exec} = require 'child_process'
task 'build', 'continually build the amqp-dsl library with --watch', ->
coffee = spawn 'coffee', ['-cw', '--no-header', '-o', 'lib', 'src']
coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
task 'install', 'install dependencies', ->
npm = spawn 'npm', ['install']
npm.stdout.on 'data', (data) -> console.log data.toString().trim()
task 'doc', 'rebuild the documentation', ->
exec([
'rm -r docs'
'./node_modules/docco/bin/docco src/*.coffee examples/*.coffee'
].join(' && '), (err) ->
throw err if err
)
task 'test', 'run tests', ->
npm = spawn 'npm', ['test']
npm.stdout.on 'data', (data) -> console.log data.toString().trim()