forked from sindresorhus/grunt-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
80 lines (78 loc) · 1.56 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
sass: {
compile: {
files: {
'test/tmp/compile.css': 'test/fixtures/test.scss'
}
},
includePaths: {
options: {
includePaths: ['./test/fixtures']
},
files: {
'test/tmp/include-paths.css': 'test/fixtures/include-paths.scss'
}
},
imagePath: {
options: {
imagePath: '//cdn.test.com'
},
files: {
'test/tmp/image-path.css': 'test/fixtures/image-path.scss'
}
},
sourceComments: {
options: {
sourceComments: 'normal'
},
files: {
'test/tmp/source-comments.css': 'test/fixtures/test.scss'
}
},
ignorePartials: {
cwd: 'test/fixtures/partials',
src: '*.scss',
dest: 'test/tmp',
expand: true,
ext: '.css'
},
sourceMap: {
options: {
sourceComments: 'map',
sourceMap: 'source-map.css.map'
},
files: {
'test/tmp/source-map.css': 'test/fixtures/test.scss'
}
},
sourceMapBySourceComment: {
options: {
sourceComments: 'map'
},
files: {
'test/tmp/source-map-sc.css': 'test/fixtures/test.scss'
}
},
sourceMapSimple: {
options: {
sourceMap: true
},
files: {
'test/tmp/source-map-simple.css': 'test/fixtures/test.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']);
};