Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Build: Upgrade to Grunt 0.4 API
* Upgrades to grunt 0.4.5
* Upgrades to grunt-jquery-content 2.0.0
* Removes many grunt plugins which are now bundled into grunt-jquery-content
* Removes many unused and unnecessary tasks
* Removes directory from sample config since there's only one useful value

Requires updating WordPress plugin from grunt-wordpress 1.0.7 to
gilded-wordpress 1.0.0.
  • Loading branch information
scottgonzalez committed Dec 20, 2014
commit b197306ef62ae7db5e51201207aa5bede9301e7f
40 changes: 40 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = function( grunt ) {

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

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

grunt.registerTask( "lint", [ "xmllint" ] );

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

};
3 changes: 1 addition & 2 deletions config-sample.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"url": "validation.local",
"username": "admin",
"password": "secret",
"dir": "dist/wordpress"
"password": "secret"
}
48 changes: 0 additions & 48 deletions grunt.js

This file was deleted.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
}
],
"dependencies": {
"grunt": "0.3.17",
"grunt-clean": "0.3.0",
"grunt-wordpress": "1.0.7",
"grunt-jquery-content": "0.9.0",
"grunt-check-modules": "0.1.0"
"grunt": "0.4.5",
"grunt-jquery-content": "2.0.0"
}
}