Skip to content

Commit c5352a6

Browse files
committed
grunt: Added clean task
1 parent e55b17a commit c5352a6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

grunt.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ function pathSlug( fileName ) {
1717
return path.basename( fileName, path.extname( fileName ) );
1818
}
1919

20+
grunt.loadNpmTasks( "grunt-clean" );
2021
grunt.loadNpmTasks( "grunt-wordpress" );
2122

2223
grunt.initConfig({
24+
clean: {
25+
folder: "dist"
26+
},
2327
lint: {
2428
grunt: "grunt.js"
2529
},
@@ -201,7 +205,7 @@ grunt.registerTask( "build-categories", function() {
201205
});
202206

203207
grunt.registerTask( "default", "build" );
204-
grunt.registerTask( "build", "lint xmllint build-entries build-categories" );
208+
grunt.registerTask( "build", "clean lint xmllint build-entries build-categories" );
205209
grunt.registerTask( "deploy", "wordpress-deploy" );
206210

207211
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
],
2323
"dependencies": {
2424
"grunt": "0.3.x",
25+
"grunt-clean": "0.1.0",
2526
"grunt-wordpress": "0.0.4",
2627
"libxmljs": "~0.5.4"
2728
},

0 commit comments

Comments
 (0)