-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathassembot.coffee
52 lines (45 loc) · 1.07 KB
/
assembot.coffee
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
52
console.log "Flipbook!"
isDebug= String(process.argv[2]) is 'serve'
build_path= if isDebug
"public/flipbook.js"
else
"flipbox.js"
onLoad= (assembot)->
console.log "Startup! (debug:#{isDebug})"
#, process.argv
configuration=
assembot:
targets: {}
options:
callback: onLoad
header: "/* FlipBook v{%- package.version -%} */"
addHeader: yes
replaceTokens: yes
plugins: [
"assembot/lib/plugins/increment-version"
"assembot/lib/plugins/server-latency"
]
autoincrement:
enabled: yes
target: 'package.json'
segment: 'build' # or major, minor, patch
when: 'after:write'
http:
log: no
latency:
enabled: yes
max: 1000
rules:
".(jpg|png|jpeg)": 100
configuration.assembot.targets[ build_path ]=
source: "./source"
ident: "flipbook"
main: "start"
autoload: true
debug: isDebug
test: false
prune: true
embedded: true
minify: (if isDebug then 0 else 2)
exclude: "test/*"
module.exports= configuration