Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (17 sloc) 0.529 kB
ea0fd0e @sstephenson Bump dependencies for Node 0.6 sys -> util
authored
1 {print} = require 'util'
5a41b8c @josh Move src/stitch => src/stitch/index
josh authored
2 {spawn} = require 'child_process'
ea9a37f @sstephenson Initial commit
authored
3
f6db7f6 @sstephenson Ensure build runs before test
authored
4 build = (callback) ->
5a41b8c @josh Move src/stitch => src/stitch/index
josh authored
5 coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src']
f6db7f6 @sstephenson Ensure build runs before test
authored
6 coffee.stderr.on 'data', (data) ->
7 process.stderr.write data.toString()
8 coffee.stdout.on 'data', (data) ->
9 print data.toString()
10 coffee.on 'exit', (code) ->
11 callback?() if code is 0
12
13 task 'build', 'Build lib/ from src/', ->
14 build()
ea9a37f @sstephenson Initial commit
authored
15
16 task 'test', 'Run tests', ->
f6db7f6 @sstephenson Ensure build runs before test
authored
17 build ->
18 process.chdir __dirname
19 {reporters} = require 'nodeunit'
20 reporters.default.run ['test']
Something went wrong with that request. Please try again.