Skip to content

Commit 606484b

Browse files
committed
grunt.js - use wordpress.dir config option
1 parent 562881f commit 606484b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

grunt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ),

0 commit comments

Comments
 (0)