-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCakefile
More file actions
32 lines (32 loc) · 1.32 KB
/
Cakefile
File metadata and controls
32 lines (32 loc) · 1.32 KB
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
{exec} = require 'child_process'
task 'build', 'Build project from coffee to js and put in out/ dir', ->
exec 'coffee --compile --output out/ *.coffee', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'coffee --compile --output out/app app', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'coffee --compile --output out/helpers helpers', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'coffee --compile --output out/model model', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'coffee --compile --output out/indexer indexer', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'cp -r public/ out/public', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'cp -r assets/ out/assets', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'cp -r app/views/ out/app/views', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'cp -r config.yaml out/config.yaml', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
exec 'cp -r node_modules/ out/node_modules', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr