-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCakefile
More file actions
37 lines (30 loc) · 864 Bytes
/
Cakefile
File metadata and controls
37 lines (30 loc) · 864 Bytes
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
fs = require 'fs'
{exec} = require 'child_process'
util = require 'util'
OUTDIR = 'patches'
task 'build', 'Build cajs max Javascript External', ->
util.log "Building cajs"
exec "coffee --compile --bare --join cacs.js --output patches src/ca.coffee src/cacs.coffee"
, (err, stdout, stderr) ->
console.log stderr, stdout, err
if err?
util.log err
else
util.log "Compiled cacs"
REPORTER = "min"
task "clean", "Clean all build products", ->
util.log "Cleaning cacs"
i = exec "ls -alF"
i.on 'close', (p)->
util.log p
task "test", "run tests", ->
exec "NODE_ENV=test
./node_modules/.bin/mocha
--compilers coffee:coffee-script
--reporter spec
--require coffee-script
--require test/test_helper.coffee
--colors
", (err, output) ->
throw err if err
console.log output