-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
43 lines (34 loc) · 909 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
/*
* csstree
* https://github.com/apflieger/csstree
*
* Copyright (c) 2014 Arnaud Pflieger
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
clean: ['test/**/*.gen.*'],
jshint: {
all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js', 'tasks/**/*.js'],
options: {
jshintrc: '.jshintrc',
},
},
nodeunit: {
all: ['test/**/*_test.js']
},
// tests runs csslint programmatically, this task is used only for debugging a failed test
csslint: {
options: {
import: false
},
src: ['test/**/*.css']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.registerTask('default', ['clean', 'jshint', 'nodeunit']);
};