forked from idflood/ThreeNodes.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cakefile
15 lines (12 loc) · 711 Bytes
/
Cakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fs = require 'fs'
{exec} = require 'child_process'
exec_and_log = (command) ->
exec command, (err, stdout, stderr) ->
console.log stdout + stderr
task 'build', 'Build single application file from source files', ->
exec_and_log 'coffee -b -o public/assets/js/ -c src/coffee/boot.coffee'
exec_and_log 'coffee -b -o public/assets/js/threenodes/ -c src/coffee/threenodes/'
exec_and_log 'coffee -b -o public/assets/js/ -c src/coffee/boot_test.coffee'
exec_and_log 'coffee -b -o public/assets/js/tests/ -c src/coffee/tests/'
exec_and_log 'coffee -b -o public/assets/js/ -c src/coffee/boot_speedtest.coffee'
exec_and_log 'coffee -b -o public/assets/js/speedtests/ -c src/coffee/speedtests/'