forked from jcemer/geo-colony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cakefile
executable file
·51 lines (38 loc) · 944 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
flour = require 'flour'
# Dev
# ===========
task 'dev', ->
# disable minifiers and compressions
flour.minifiers.js = null
flour.minifiers.css = null
flour.compilers.styl.compress = false
# Build
# ===========
task 'build', ->
invoke 'build:css'
invoke 'build:js'
task 'build:css', ->
bundle [
'assets/css/reset.css'
'assets/css/main.styl'
], 'public/assets/css/main.css'
task 'build:js', ->
bundle [
'assets/js/vendor/underscore.js'
'assets/js/vendor/backbone.js'
'assets/js/vendor/backbone-autocomplete.js'
'assets/js/vendor/infobox.js'
'assets/js/app.coffee'
'assets/js/storage.coffee'
'assets/js/utils.coffee'
'assets/js/models.coffee'
'assets/js/views/search/*.coffee'
'assets/js/views/*.coffee'
'assets/js/init.coffee'
], 'public/assets/js/main.js'
# Watch
# ===========
task 'watch', ->
invoke 'build'
watch 'assets/css/', -> invoke 'build:css'
watch 'assets/js/', -> invoke 'build:js'