Skip to content

Commit 948e6c4

Browse files
committed
Build: Replace grunt-clean with rimraf
1 parent 78e432c commit 948e6c4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

grunt.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1+
var rimraf = require( "rimraf" );
2+
13
module.exports = function( grunt ) {
24

35
var entryFiles = grunt.file.expandFiles( "entries/*.xml" );
46

5-
grunt.loadNpmTasks( "grunt-clean" );
67
grunt.loadNpmTasks( "grunt-wordpress" );
78
grunt.loadNpmTasks( "grunt-jquery-content" );
89
grunt.loadNpmTasks( "grunt-check-modules" );
910

1011
grunt.initConfig({
11-
clean: {
12-
folder: "dist"
13-
},
1412
lint: {
1513
grunt: "grunt.js"
1614
},
@@ -39,6 +37,10 @@ grunt.initConfig({
3937
}, grunt.file.readJSON( "config.json" ) )
4038
});
4139

40+
grunt.registerTask( "clean", function() {
41+
rimraf.sync( "dist" );
42+
});
43+
4244
grunt.registerTask( "manifest", "Generate categories.json manifest file", function() {
4345
var categories,
4446
categoryPosts = {},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
],
2323
"dependencies": {
2424
"grunt": "0.3.17",
25-
"grunt-clean": "0.3.0",
2625
"grunt-wordpress": "1.2.1",
2726
"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"
2929
},
3030
"devDependencies": {},
3131
"keywords": []

0 commit comments

Comments
 (0)