File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- var config = require ( "./config" ) ;
1
+ var rimraf = require ( "rimraf" ) ,
2
+ config = require ( "./config" ) ;
2
3
3
4
module . exports = function ( grunt ) {
4
5
5
6
"use strict" ;
6
7
7
- grunt . loadNpmTasks ( "grunt-clean" ) ;
8
8
grunt . loadNpmTasks ( "grunt-wordpress" ) ;
9
9
grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
10
10
grunt . loadNpmTasks ( "grunt-check-modules" ) ;
11
11
12
12
grunt . initConfig ( {
13
- clean : {
14
- wordpress : "dist/"
15
- } ,
16
13
jshint : {
17
14
options : {
18
15
undef : true ,
@@ -39,7 +36,9 @@ grunt.initConfig({
39
36
} , grunt . file . readJSON ( "config.json" ) )
40
37
} ) ;
41
38
42
-
39
+ grunt . registerTask ( "clean" , function ( ) {
40
+ rimraf . sync ( "dist" ) ;
41
+ } ) ;
43
42
44
43
// Process a JSON order file and return an object of page slugs and their ordinal indices
45
44
grunt . registerHelper ( "read-order" , function ( orderFile ) {
Original file line number Diff line number Diff line change 22
22
],
23
23
"dependencies" : {
24
24
"grunt" : " 0.3.17" ,
25
- "grunt-clean" : " 0.3.0" ,
26
25
"grunt-wordpress" : " 1.2.1" ,
27
26
"grunt-jquery-content" : " 0.13.0" ,
28
- "grunt-check-modules" : " 0.1.0"
27
+ "grunt-check-modules" : " 0.1.0" ,
28
+ "rimraf" : " 2.2.8"
29
29
}
30
30
}
You can’t perform that action at this time.
0 commit comments