Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit b0121a6

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
1 parent 8ccff6c commit b0121a6

File tree

4 files changed

+59
-57
lines changed

4 files changed

+59
-57
lines changed

.gitignore

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

Gruntfile.js

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
xmllint: {
10+
all: [
11+
"entries/**",
12+
"categories.xml",
13+
"entries2html.xsl",
14+
"notes.xsl"
15+
]
16+
},
17+
"build-pages": {
18+
all: "pages/**"
19+
},
20+
"build-xml-entries": {
21+
all: "entries/**"
22+
},
23+
"build-resources": {
24+
all: "resources/**"
25+
},
26+
wordpress: (function() {
27+
var config = require( "./config" );
28+
config.dir = "dist/wordpress";
29+
return config;
30+
})()
31+
});
32+
33+
grunt.registerTask( "clean", function() {
34+
rimraf.sync( "dist" );
35+
});
36+
37+
grunt.registerTask( "build", [
38+
"build-pages",
39+
"build-resources",
40+
"build-xml-entries",
41+
"build-xml-categories",
42+
"build-xml-full"
43+
]);
44+
45+
grunt.registerTask( "build-wordpress", [
46+
"check-modules",
47+
"xmllint",
48+
"clean",
49+
"build"
50+
]);
51+
52+
};

grunt.js

Lines changed: 0 additions & 49 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)