8000 Build: Remove manifest task · jquery/api.jqueryui.com@702ceec · GitHub
[go: up one dir, main page]

Skip to content

Commit 702ceec

Browse files
committed
Build: Remove manifest task
This task hasn't been used since 1.11.0 was released. (cherry picked from commit 0f22d2a)
1 parent 877da4d commit 702ceec

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

grunt.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,6 @@ grunt.registerTask( "clean", function() {
3030
rimraf.sync( "dist" );
3131
});
3232

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

0 commit comments

Comments
 (0)
0