-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCakefile
28 lines (23 loc) · 800 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
fs = require 'fs'
{exec} = require 'child_process'
task 'jade', 'converts and puts jade in www', ->
exec 'jade src/jade -O www/', (err, stdout, stderr) ->
throw err if err
console.log 'done jade'
task 'coffee', 'builds coffescript files', ->
exec 'coffee --compile --output www/js src/coffee', (err, stdout, stderr) ->
throw err if err
console.log 'done coffee'
task 'sass', 'sass to css', ->
exec 'sass --update src/sass:www/stylesheets', (err, stdout, stderr) ->
throw err if err
console.log 'did sass'
task 'all', 'Convert jade, coffee and sass', ->
invoke 'jade'
invoke 'coffee'
invoke 'sass'
task 'watch', 'watchr over all', ->
exec 'watchr watchfile.watchr', (err, stdout, stderr) ->
throw err if err
console.log 'watching you'
invoke 'all'