forked from ConciseCSS/concisecss.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jakefile
58 lines (53 loc) · 1.18 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
desc('Compile Pug files.')
task('pug', () => {
jake.exec('pug src/ --out . -w --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()
})