Skip to content

Commit d39fb3d

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
1 parent c797af0 commit d39fb3d

File tree

4 files changed

+59
-50
lines changed

4 files changed

+59
-50
lines changed

.gitignore

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
dist
2-
entries_tmp
3-
node_modules
4-
config.json
5-
.project
6-
*~
7-
*.diff
8-
*.patch
9-
.DS_Store
10-
.settings
1+
/dist/
2+
/node_modules/
3+
config.js*

Gruntfile.js

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

grunt.js

-36
This file was deleted.

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
}
2222
],
2323
"dependencies": {
24-
"grunt": "0.3.17",
25-
"grunt-wordpress": "1.2.1",
26-
"grunt-jquery-content": "0.13.0",
27-
"grunt-check-modules": "0.1.0",
24+
"grunt": "0.4.5",
25+
"grunt-check-modules": "0.2.0",
26+
"grunt-jquery-content": "1.0.0",
2827
"rimraf": "2.2.8"
2928
},
3029
"devDependencies": {},

0 commit comments

Comments
 (0)