-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCakefile
32 lines (29 loc) · 893 Bytes
/
Cakefile
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
# Building CruddyMVC requires typescript and uglify-js. For
# help installing, try:
#
# `npm install typescript uglify-js`
#
fs = require 'fs'
path = require 'path'
{print} = require 'sys'
{exec} = require 'child_process'
#{parser, uglify} = require 'uglify-js'
javascripts = {
'CruddyMVC/CruddyMVC.js': [
'src/SignalLite.js'
'src/Signal.js'
'src/Cruddy.ts'
]
}
task 'build', 'build CruddyMVC', (options) ->
code = exec 'tsc @build'
code.stderr.on 'data', (data) ->
process.stderr.write data.toString()
code.stdout.on 'data', (data) ->
print data.toString()
task 'watch', 'watch for changes to CruddyMVC', (options) ->
code = exec 'tsc @watch'
code.stderr.on 'data', (data) ->
process.stderr.write data.toString()
code.stdout.on 'data', (data) ->
print data.toString()