-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
43 lines (41 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
watch: {
grunt: { files: ['Gruntfile.js'] },
jade: {
files: 'app/views/**/*.jade',
tasks: ['jade']
},
coffee: {
files: 'app/coffee/*.coffee',
tasks: ['coffee:compile']
}
},
jade: {
compile: {
options: {
pretty: true,
},
files: {
'public/index.html': 'app/views/index.jade'
}
}
},
coffee: {
compile: {
expand: true,
flatten: true,
cwd: "app/coffee/",
src: ['*.coffee'],
dest: 'public/js/',
ext: '.js'
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default','Convert Jade templates into html templates', ['coffee','jade','watch']);
};