From 83029eb75600e306696bc5bf03c6d899fa3c10f8 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Tue, 28 May 2013 15:57:17 -0400 Subject: [PATCH] Make the bin/jsx source and output directories configurable. --- grunt/config/jsx/jsx.js | 12 +++++++++--- grunt/tasks/jsx.js | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/grunt/config/jsx/jsx.js b/grunt/config/jsx/jsx.js index c75c318aca..4245cc7aa1 100644 --- a/grunt/config/jsx/jsx.js +++ b/grunt/config/jsx/jsx.js @@ -6,7 +6,9 @@ var rootIDs = [ var debug = { rootIDs: rootIDs, - configFile: "grunt/config/jsx/debug.json" + configFile: "grunt/config/jsx/debug.json", + sourceDir: "src", + outputDir: "build/modules" }; var test = { @@ -14,12 +16,16 @@ var test = { "test/all.js", "**/__tests__/*.js" ]), - configFile: debug.configFile + configFile: debug.configFile, + sourceDir: "src", + outputDir: "build/modules" }; var release = { rootIDs: rootIDs, - configFile: "grunt/config/jsx/release.json" + configFile: "grunt/config/jsx/release.json", + sourceDir: "src", + outputDir: "build/modules" }; module.exports = { diff --git a/grunt/tasks/jsx.js b/grunt/tasks/jsx.js index 1ecee11fd7..6b2f4123d7 100644 --- a/grunt/tasks/jsx.js +++ b/grunt/tasks/jsx.js @@ -9,8 +9,8 @@ module.exports = function() { var args = [ "bin/jsx", - "src", - "build/modules" + config.sourceDir, + config.outputDir ]; var rootIDs = expand({