-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCakefile
More file actions
31 lines (22 loc) · 908 Bytes
/
Cakefile
File metadata and controls
31 lines (22 loc) · 908 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
sealdeal = require "sealdeal"
spawn = require("child_process").spawn
createSealdealTask = (taskName) ->
ps = spawn "./node_modules/sealdeal/bin/sealdeal", [taskName]
ps.stdout.setEncoding "utf8"
ps.stderr.setEncoding "utf8"
ps.stdout.on "data", (data) -> console.log data
ps.stderr.on "data", (data) -> console.log data
task "lib:build", "build bsharp.js to lib", ->
sealdeal.mkdirRecursive "lib"
sealdeal.writeFileRecursive "lib/bsharp.js",
sealdeal.concatJSDir "src/js/app"
task "app:server", "run test app server", ->
createSealdealTask "server"
task "app:build", "build test app", ->
createSealdealTask "build"
task "test:server", "run testacular server (requires testacular)", ->
createSealdealTask "test-server"
testRunDescription =
"run jasmine unit tests with testacular (requires testacular)"
task "test:run", testRunDescription, ->
createSealdealTask "test"