-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
50 lines (44 loc) · 1005 Bytes
/
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
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
compass: {
files: ['static/sass/{,**/}*.scss'],
tasks: ['compass:dev']
}
},
compass: {
options: {
bundleExec: true,
relativeAssets: true,
cssDir: 'static/css',
sassDir: 'static/sass',
imagesDir: 'static/img'
},
dev: {
options: {
environment: 'development',
outputStyle: 'expanded',
raw: 'line_numbers = :true\n'
}
},
dist: {
options: {
environment: 'production',
outputStyle: 'compressed',
force: true
}
}
}
});
var tasks = [
'grunt-contrib-watch',
'grunt-contrib-compass'
];
for (var i in tasks) {
grunt.loadNpmTasks(tasks[i]);
}
grunt.registerTask('default', ['compass:dev', 'watch']);
grunt.registerTask('dist', ['compass:dist']);
};