File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ grunt.initConfig({
2727 all : xmlFiles
2828 } ,
2929 wordpress : grunt . utils . _ . extend ( {
30- dir : "dist"
30+ dir : "dist/wordpress "
3131 } , grunt . file . readJSON ( "config.json" ) )
3232} ) ;
3333
@@ -64,7 +64,7 @@ grunt.registerTask( "build-entries", function() {
6464 var task = this ,
6565 taskDone = task . async ( ) ,
6666 // TODO make `entry` a custom post type instead of (ab)using `post`?
67- targetDir = "dist /posts/post/";
67+ targetDir = grunt . config ( "wordpress.dir" ) + " /posts/post/";
6868
6969 grunt . file . mkdir ( targetDir ) ;
7070
@@ -102,7 +102,7 @@ grunt.registerTask( "build-categories", function() {
102102 var task = this ,
103103 taskDone = task . async ( ) ,
104104 categories = { } ,
105- outFilename = "dist /taxonomies.json";
105+ outFilename = grunt . config ( "wordpress.dir" ) + " /taxonomies.json";
106106
107107 grunt . utils . async . forEachSeries ( categoryFiles , function ( fileName , fileDone ) {
108108 var xml = grunt . file . read ( fileName ) ,
You can’t perform that action at this time.
0 commit comments