-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
65 lines (53 loc) · 1.2 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
/*
* grunt-wp-css
* http://www.cedaro.com/
*
* Copyright (c) 2014 Cedaro
* Licensed under the MIT license.
*/
'use strict';
module.exports = function( grunt ) {
grunt.loadTasks( 'tasks' );
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks );
grunt.config.init({
clean: {
tests: ['tmp']
},
jshint: {
options : {
jshintrc : '.jshintrc'
},
all : [
'Gruntfile.js',
'tasks/*.js'
]
},
wpcss: {
comment_spacing: {
src: ['test/fixtures/comment-spacing.css'],
dest: 'tmp/comment-spacing.css'
},
font_face: {
src: ['test/fixtures/font-face.css'],
dest: 'tmp/font-face.css'
},
nested_blocks: {
src: ['test/fixtures/nested-blocks.css'],
dest: 'tmp/nested-blocks.css'
},
single_line_selectors: {
src: ['test/fixtures/single-line-selectors.css'],
dest: 'tmp/single-line-selectors.css'
},
single_line_declarations: {
src: ['test/fixtures/single-line-declarations.css'],
dest: 'tmp/single-line-declarations.css'
}
},
nodeunit: {
tests: ['test/*_test.js'],
}
});
grunt.registerTask( 'default', [ 'jshint' ] );
grunt.registerTask( 'test', ['clean:tests', 'wpcss', 'nodeunit']);
};