forked from sindresorhus/grunt-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
64 lines (62 loc) · 1.27 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
sass: {
compile: {
files: {
'test/tmp/compile.css': 'test/fixtures/test.scss',
'test/tmp/compile2.css': 'test/fixtures/test.scss'
}
},
includePaths: {
options: {
includePaths: ['test/fixtures']
},
files: {
'test/tmp/include-paths.css': 'test/fixtures/include-paths.scss'
}
},
ignorePartials: {
cwd: 'test/fixtures/partials',
src: '*.scss',
dest: 'test/tmp',
expand: true,
ext: '.css'
},
sourceMap: {
options: {
sourceMap: 'test/tmp/source-map.css.map'
},
files: {
'test/tmp/source-map.css': 'test/fixtures/test.scss'
}
},
sourceMapSimple: {
options: {
sourceMap: true
},
files: {
'test/tmp/source-map-simple.css': 'test/fixtures/test.scss'
}
},
precision: {
options: {
precision: 3
},
files: {
'test/tmp/precision.css': 'test/fixtures/precision.scss'
}
}
},
nodeunit: {
tasks: ['test/test.js']
},
clean: {
test: ['test/tmp/**']
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.registerTask('default', ['clean', 'sass', 'nodeunit', 'clean']);
};