-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCakefile
45 lines (37 loc) · 1.16 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
flour = require 'flour'
task 'dev', ->
flour.minifiers.disable 'js'
flour.minifiers.disable 'css'
task 'build:vendor', ->
bundle [
'assets/vendor/underscore.js'
'assets/vendor/zepto.js'
'assets/vendor/backbone.js'
'assets/vendor/foundation/js/foundation/foundation.js'
'assets/vendor/foundation/js/foundation/foundation.dropdown.js'
], 'public/scripts/vendor.js'
bundle [
'assets/vendor/foundation/css/normalize.css'
'assets/vendor/foundation/css/foundation.css'
], 'public/styles/base.css'
task 'build:coffee', ->
bundle [
'assets/*.coffee'
], 'public/scripts/app.js'
task 'build:styl', ->
bundle [
'assets/app.styl'
], 'public/styles/app.css'
task 'build:main', ->
compile 'index.coffee', 'index.js'
task 'build', ->
invoke 'build:vendor'
invoke 'build:coffee'
invoke 'build:styl'
invoke 'build:main'
task 'watch', ->
invoke 'build'
watch 'assets/vendor/*', -> invoke 'build:vendor'
watch 'assets/*.coffee', -> invoke 'build:coffee'
watch 'assets/*.styl', -> invoke 'build:styl'
watch 'index.coffee', -> invoke 'build:main'