-
Notifications
You must be signed in to change notification settings - Fork 9
/
grunt.js
45 lines (37 loc) · 763 Bytes
/
grunt.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
/*global module:false*/
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
sass: {
dist: {
files: {
'app/public/css/main.css': 'app/sass/main.sass'
}
},
options: {
'compass': true
}
},
coffee: {
compile: {
files: {
'app/public/scripts/*.js': 'app/coffee/*.coffee'
}
}
},
watch: {
coffee: {
files: ['app/coffee/*'],
tasks: 'coffee'
},
sass: {
files: ['app/sass/*'],
tasks: 'sass'
}
}
});
// Load necessary plugins
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.registerTask('default', 'sass coffee');
};