Skip to content

Commit

Permalink
Build: Remove manifest task
Browse files Browse the repository at this point in the history
This task hasn't been used since 1.11.0 was released.
  • Loading branch information
scottgonzalez committed Dec 5, 2014
1 parent 2646144 commit 2b70900
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions grunt.js
Expand Up @@ -31,35 +31,6 @@ grunt.registerTask( "clean", function() {
rimraf.sync( "dist" );
});

grunt.registerTask( "manifest", "Generate categories.json manifest file", function() {
var categories,
categoryPosts = {},
done = this.async();

categories = require( "./" + grunt.config( "wordpress.dir" ) + "/taxonomies" ).category;
categories.forEach(function( category ) {
category.posts = categoryPosts[ category.slug ] = [];
});

grunt.helper( "wordpress-walk-posts", grunt.config( "wordpress.dir" ), function( post, callback ) {
if ( post.termSlugs && post.termSlugs.category ) {
post.termSlugs.category.forEach(function( slug ) {
categoryPosts[ slug ].push( post );
});
}
callback();
}, function( error ) {
if ( error ) {
grunt.error.log( error.message );
return done( false );
}

grunt.file.write( grunt.config( "wordpress.dir" ) + "/categories.json",
JSON.stringify( categories, null, "\t" ) + "\n" );
done();
});
});

grunt.registerTask( "build", "build-pages build-xml-entries build-xml-categories build-resources build-xml-full" );
grunt.registerTask( "build-wordpress", "check-modules clean xmllint build" );

Expand Down

0 comments on commit 2b70900

Please sign in to comment.