-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJakefile.js
44 lines (40 loc) · 1.55 KB
/
Jakefile.js
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
37
38
39
40
41
42
43
44
var exec = require('tooljs').exec
;
task('default', ['deploy']);
task('clean', [], function () {
exec([], {verbose: false}, function () { console.log('done with cleanup'); complete(); })
.rm('deploy/*', {recursive: true})
;
}, true);
task('compile', [], function () {
exec([], {verbose: true}, function () { complete(); })
.run('jake -f scheem/Jakefile.js -C scheem')
.run('jake -f tscheem/Jakefile.js -C tscheem')
.run('jake -f tortoise/Jakefile.js -C tortoise')
.run('jake -f elephant/Jakefile.js -C elephant')
.run('marked -o deploy/tortoise_repeat.html tortoise/doc/repeat.md')
.run('marked -o deploy/tortoise_text.html tortoise/doc/text.md')
;
}, true);
task('deploy', ['clean', 'compile'], function () {
exec([], {verbose: true}, function () { complete(); })
.cp('scheem/scheem*', 'deploy/')
.cp('scheem/test/*', 'deploy/')
.cp('tscheem/tscheem*', 'deploy/')
.cp('tscheem/test/*', 'deploy/')
.cp('tortoise/tortoise*', 'deploy/')
.cp('tortoise/test/*', 'deploy/')
.cp('hare/hare*', 'deploy/')
.cp('hare/test/*', 'deploy/')
.cp('elephant/test/*', 'deploy/')
.cp('elephant/elephant*', 'deploy/')
.cp('web/*', 'deploy/', {recursive: true})
.cp('node_modules/mocha/mocha.*', 'deploy/')
.cp('node_modules/chai/chai.js', 'deploy/')
.cp('CodeMirror/lib/codemirror.*', 'deploy/')
.cp('CodeMirror/theme/*.css', 'deploy/')
.cp('CodeMirror/mode/scheme/scheme.js', 'deploy/')
.cp('CodeMirror/mode/javascript/javascript.js', 'deploy/')
.cp('raphael/raphael.js', 'deploy/')
;
}, true);