File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ var rimraf = require ( "rimraf" ) ;
2
+
1
3
module . exports = function ( grunt ) {
2
4
3
5
var entryFiles = grunt . file . expandFiles ( "entries/*.xml" ) ;
4
6
5
- grunt . loadNpmTasks ( "grunt-clean" ) ;
6
7
grunt . loadNpmTasks ( "grunt-wordpress" ) ;
7
8
grunt . loadNpmTasks ( "grunt-jquery-content" ) ;
8
9
grunt . loadNpmTasks ( "grunt-check-modules" ) ;
9
10
10
11
grunt . initConfig ( {
11
- clean : {
12
- folder : "dist"
13
- } ,
14
12
lint : {
15
13
grunt : "grunt.js"
16
14
} ,
@@ -39,6 +37,10 @@ grunt.initConfig({
39
37
} , grunt . file . readJSON ( "config.json" ) )
40
38
} ) ;
41
39
40
+ grunt . registerTask ( "clean" , function ( ) {
41
+ rimraf . sync ( "dist" ) ;
42
+ } ) ;
43
+
42
44
grunt . registerTask ( "manifest" , "Generate categories.json manifest file" , function ( ) {
43
45
var categories ,
44
46
categoryPosts = { } ,
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.14.0" ,
28
- "grunt-check-modules" : " 0.1.0"
27
+ "grunt-check-modules" : " 0.1.0" ,
28
+ "rimraf" : " 2.2.8"
29
29
},
30
30
"devDependencies" : {},
31
31
"keywords" : []
You can’t perform that action at this time.
0 commit comments