forked from necolas/normalize.css
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
44 lines (41 loc) · 1.23 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
},
dist: {
files: {
'tests/controls/font.css': 'tests/tests/font.scss',
'tests/controls/ie8.css': 'tests/tests/ie8.scss',
'tests/controls/ie9.css': 'tests/tests/ie9.scss',
'tests/controls/ie10.css': 'tests/tests/ie10.scss',
'tests/controls/ie11.css': 'tests/tests/ie11.scss',
'tests/controls/safari6.css': 'tests/tests/safari6.scss',
'tests/controls/safari7.css': 'tests/tests/safari7.scss',
'tests/controls/strict.css': 'tests/tests/strict.scss'
}
}
},
clean: {
css: ['tests/controls/*.css']
},
scsslint: {
allFiles: [
'tests/tests/*.scss',
'*.scss'
],
options: {
bundleExec: true,
config: '.scss-lint.yml',
reporterOutput: 'scss-lint-report.xml',
colorizeOutput: true
}
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-scss-lint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['clean:css', 'sass']);
grunt.registerTask('test', ['default', 'scsslint']);
};