Skip to content

Commit 69bdb18

Browse files
committed
Build: Replace grunt-clean with rimraf
1 parent cbee33f commit 69bdb18

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

grunt.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
var config = require( "./config" );
1+
var rimraf = require( "rimraf" ),
2+
config = require( "./config" );
23

34
module.exports = function( grunt ) {
45

56
"use strict";
67

7-
grunt.loadNpmTasks( "grunt-clean" );
88
grunt.loadNpmTasks( "grunt-wordpress" );
99
grunt.loadNpmTasks( "grunt-jquery-content" );
1010
grunt.loadNpmTasks( "grunt-check-modules" );
1111

1212
grunt.initConfig({
13-
clean: {
14-
wordpress: "dist/"
15-
},
1613
jshint: {
1714
options: {
1815
undef: true,
@@ -39,7 +36,9 @@ grunt.initConfig({
3936
}, grunt.file.readJSON( "config.json" ) )
4037
});
4138

42-
39+
grunt.registerTask( "clean", function() {
40+
rimraf.sync( "dist" );
41+
});
4342

4443
// Process a JSON order file and return an object of page slugs and their ordinal indices
4544
grunt.registerHelper( "read-order", function( orderFile ) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
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.13.0",
28-
"grunt-check-modules": "0.1.0"
27+
"grunt-check-modules": "0.1.0",
28+
"rimraf": "2.2.8"
2929
}
3030
}

0 commit comments

Comments
 (0)