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