-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
executable file
·50 lines (46 loc) · 1.19 KB
/
Gruntfile.js
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
module.exports = function(grunt) {
grunt.registerTask('watch', [ 'watch' ]);
grunt.initConfig({
less: {
style: {
files: {
"static/css/diva.css": "less/diva.less",
"static/css/responsive.css": "less/responsive.less",
}
}
},
jade: {
compile: {
options: {
data: {
debug: false
}
},
files: {
'pages/page.html': 'jade/page.jade',
'pages/page_dev.html': 'jade/page_dev.jade',
'pages/dev.html': 'jade/dev.jade',
'pages/dev-mf.html': 'jade/dev-mf.jade',
'pages/copyright.html': 'jade/copyright.jade',
'pages/disclaimer.html': 'jade/disclaimer.jade'
}
}
},
watch: {
css: {
files: ['less/*.less'],
tasks: ['less:style'],
options: {
livereload: true,
}
},
jade: {
files: ['jade/*.jade'],
tasks: ['jade']
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-watch');
};