-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
48 lines (45 loc) · 1.01 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
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
coffee: {
compile: {
files: {
'ui/screens/Signup.coffee': 'ui/screens/Signup.coffee'
},
options: {
bare: true
}
},
},
less: {
development: {
options: {
compress: false,
yuicompress: false,
optimization: 2
},
files: {
"ui/assets/styles/css/main.css": "ui/assets/styles/less/main.less" // destination file and source file
}
}
},
watch: {
styles: {
files: ['ui/assets/styles/less/**/*.less'], // which files to watch
tasks: ['less'],
options: {
nospawn: true
}
},
coffee: {
files: ['ui/screens/Signup.coffee'],
tasks: 'coffee',
options: {
bare: true
}
}
}
});
grunt.registerTask('default', ['less', 'watch']);
grunt.loadNpmTasks('grunt-contrib-coffee');
};