forked from ConciseCSS/concise.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jakefile
63 lines (57 loc) · 1.26 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
desc('Compile the files of Concise Framework.')
task('concise', () => {
jake.exec('concisecss compile concise.scss dist/concise.css', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Minify CSS.')
task('minify', () => {
jake.exec('cssnano dist/concise.css dist/concise.min.css', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Compile styles on file changes')
task('concise:watch', () => {
jake.exec('chokidar "**/*.scss" -c "jake build"', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Start livereload server.')
task('livereload', () => {
jake.exec('livereload . -e "html, css"', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Start HTTP server.')
task('http', () => {
jake.exec('http-server .', {
printStdout: true,
printStderr: true
}, () => {
complete()
})
})
desc('Build the files for distribution.')
task('build', () => {
jake.Task['concise'].invoke()
jake.Task['minify'].invoke()
})
desc('Start the development tools.')
task('default', () => {
jake.Task['build'].invoke()
jake.Task['concise:watch'].invoke()
jake.Task['http'].invoke()
jake.Task['livereload'].invoke()
})