Skip to content

Commit

Permalink
Build: Upgrade to Grunt 0.4.5
Browse files Browse the repository at this point in the history
* Upgrade to grunt-check-modules 0.2.0
* Upgrade to grunt-jquery-content 1.0.0
(cherry picked from commit 652f400)
  • Loading branch information
scottgonzalez committed Dec 12, 2014
1 parent 702ceec commit ed5debe
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 49 deletions.
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
dist
node_modules
config.json
.project
*~
*.diff
*.patch
.DS_Store
.settings
/dist/
/node_modules/
config.js*
53 changes: 53 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
var rimraf = require( "rimraf" );

module.exports = function( grunt ) {

grunt.loadNpmTasks( "grunt-check-modules" );
grunt.loadNpmTasks( "grunt-jquery-content" );

grunt.initConfig({
xmllint: {
all: [
"entries/**",
"includes/**",
"categories.xml",
"entries2html.xsl",
"notes.xsl"
]
},
"build-pages": {
all: "pages/**"
},
"build-xml-entries": {
all: "entries/**"
},
"build-resources": {
all: "resources/**"
},
wordpress: (function() {
var config = require( "./config" );
config.dir = "dist/wordpress";
return config;
})()
});

grunt.registerTask( "clean", function() {
rimraf.sync( "dist" );
});

grunt.registerTask( "build", [
"build-pages",
"build-resources",
"build-xml-entries",
"build-xml-categories",
"build-xml-full"
]);

grunt.registerTask( "build-wordpress", [
"check-modules",
"xmllint",
"clean",
"build"
]);

};
36 changes: 0 additions & 36 deletions grunt.js

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
}
],
"dependencies": {
"grunt": "0.3.17",
"grunt-wordpress": "1.2.1",
"grunt-jquery-content": "0.14.0",
"grunt-check-modules": "0.1.0",
"grunt": "0.4.5",
"grunt-check-modules": "0.2.0",
"grunt-jquery-content": "1.0.0",
"rimraf": "2.2.8"
},
"devDependencies": {},
Expand Down

0 comments on commit ed5debe

Please sign in to comment.