Skip to content

Commit 2b70900

Browse files
committed
Build: Remove manifest task
This task hasn't been used since 1.11.0 was released.
1 parent 2646144 commit 2b70900

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

grunt.js

-29
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,6 @@ grunt.registerTask( "clean", function() {
3131
rimraf.sync( "dist" );
3232
});
3333

34-
grunt.registerTask( "manifest", "Generate categories.json manifest file", function() {
35-
var categories,
36-
categoryPosts = {},
37-
done = this.async();
38-
39-
categories = require( "./" + grunt.config( "wordpress.dir" ) + "/taxonomies" ).category;
40-
categories.forEach(function( category ) {
41-
category.posts = categoryPosts[ category.slug ] = [];
42-
});
43-
44-
grunt.helper( "wordpress-walk-posts", grunt.config( "wordpress.dir" ), function( post, callback ) {
45-
if ( post.termSlugs && post.termSlugs.category ) {
46-
post.termSlugs.category.forEach(function( slug ) {
47-
categoryPosts[ slug ].push( post );
48-
});
49-
}
50-
callback();
51-
}, function( error ) {
52-
if ( error ) {
53-
grunt.error.log( error.message );
54-
return done( false );
55-
}
56-
57-
grunt.file.write( grunt.config( "wordpress.dir" ) + "/categories.json",
58-
JSON.stringify( categories, null, "\t" ) + "\n" );
59-
done();
60-
});
61-
});
62-
6334
grunt.registerTask( "build", "build-pages build-xml-entries build-xml-categories build-resources build-xml-full" );
6435
grunt.registerTask( "build-wordpress", "check-modules clean xmllint build" );
6536

0 commit comments

Comments
 (0)