Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 465d409

Browse files
committed
Build: Upgrade to Grunt 0.4.5
* Upgrade to grunt-check-modules 0.2.0 * Upgrade to grunt-jquery-content 1.0.0 * Replace grunt-clean with rimraf * Remove grunt-html * Remove unused tasks
1 parent 61e8ad7 commit 465d409

File tree

4 files changed

+36
-55
lines changed

4 files changed

+36
-55
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
node_modules
2-
dist
3-
config.json
1+
/dist/
2+
/node_modules/
3+
/config.js*

Gruntfile.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
var rimraf = require( "rimraf" );
2+
3+
module.exports = function( grunt ) {
4+
5+
grunt.loadNpmTasks( "grunt-check-modules" );
6+
grunt.loadNpmTasks( "grunt-jquery-content" );
7+
8+
grunt.initConfig({
9+
"build-pages": {
10+
all: "page/**"
11+
},
12+
"build-resources": {
13+
all: "resources/**"
14+
},
15+
wordpress: (function() {
16+
var config = require( "./config" );
17+
config.dir = "dist/wordpress";
18+
return config;
19+
})()
20+
});
21+
22+
grunt.registerTask( "clean", function() {
23+
rimraf.sync( "dist" );
24+
});
25+
26+
grunt.registerTask( "build", [ "build-pages", "build-resources" ] );
27+
grunt.registerTask( "build-wordpress", [ "check-modules", "clean", "build" ] );
28+
29+
};

grunt.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
}
2121
],
2222
"dependencies": {
23-
"grunt": "0.3.17",
24-
"grunt-clean": "0.3.0",
25-
"grunt-wordpress": "1.2.1",
26-
"grunt-jquery-content": "0.13.0",
27-
"grunt-check-modules": "0.1.0"
23+
"grunt": "0.4.5",
24+
"grunt-check-modules": "0.2.0",
25+
"grunt-jquery-content": "1.0.0",
26+
"rimraf": "2.2.8"
2827
}
2928
}

0 commit comments

Comments
 (0)