File tree 1 file changed +0
-29
lines changed
1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -31,35 +31,6 @@ grunt.registerTask( "clean", function() {
31
31
rimraf . sync ( "dist" ) ;
32
32
} ) ;
33
33
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
-
63
34
grunt . registerTask ( "build" , "build-pages build-xml-entries build-xml-categories build-resources build-xml-full" ) ;
64
35
grunt . registerTask ( "build-wordpress" , "check-modules clean xmllint build" ) ;
65
36
You can’t perform that action at this time.
0 commit comments