-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jakefile
74 lines (67 loc) · 1.52 KB
/
Jakefile
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
desc('Compile Pug files.')
task('pug', () => {
jake.exec('pug src/ --out . -w --obj src/_data.json', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Compile Pug files for production')
task('pug:production', () => {
jake.exec('pug src/ --out . --obj src/_data.json', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Compile the files of Concise Framework.')
task('concise', () => {
jake.exec('concisecss compile src/styles/main.scss styles/main.css', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Compile styles on file changes')
task('concise:watch', () => {
jake.exec('chokidar "src/styles/**/*.scss" -c "jake concise"', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Start livereload server.')
task('livereload', () => {
jake.exec('livereload . -e "js, html, css"', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Start HTTP server.')
task('http', () => {
jake.exec('http-server .', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Start the development services.')
task('default', () => {
jake.Task['concise'].invoke()
jake.Task['pug'].invoke()
jake.Task['concise:watch'].invoke()
jake.Task['http'].invoke()
jake.Task['livereload'].invoke()
})
desc('Start the deployment services.')
task('deploy', () => {
jake.Task['concise'].invoke()
jake.Task['pug:production'].invoke()
})