-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCakefile
46 lines (34 loc) · 1.05 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
46
flour = require 'flour'
task 'dev', ->
# disable the js minifier
flour.minifiers.js = null
flour.compilers.styl.compress = false
task 'build:scripts', ->
bundle [
'source/scripts/ender.js'
'source/scripts/simple-cors-request.coffee'
'source/scripts/simple-async-load.coffee'
'source/scripts/main.coffee'
], 'public/scripts/main.js'
task 'build:styles', ->
bundle [
'source/styles/reset.css'
'source/styles/main.styl'
'source/styles/print.css'
], 'public/styles/main.css'
task 'build', ->
# https://github.com/ender-js/Ender/wiki/Ender-package-list
(require 'ender').build [
'qwery' # Selector
'bonzo' # DOM utility
'domready' # DOM ready
'bean' # event manager
], output: 'source/scripts/ender', ->
invoke 'build:scripts'
invoke 'build:styles'
task 'watch', ->
invoke 'build'
watch 'source/scripts/', ->
invoke 'build:scripts'
watch 'source/styles/', ->
invoke 'build:styles'