mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Make the bin/jsx source and output directories configurable.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -9,8 +9,8 @@ module.exports = function() {
|
||||
|
||||
var args = [
|
||||
"bin/jsx",
|
||||
"src",
|
||||
"build/modules"
|
||||
config.sourceDir,
|
||||
config.outputDir
|
||||
];
|
||||
|
||||
var rootIDs = expand({
|
||||
|
||||
Reference in New Issue
Block a user