mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
44 lines
646 B
JavaScript
44 lines
646 B
JavaScript
'use strict';
|
|
|
|
var grunt = require('grunt');
|
|
var _ = require('lodash');
|
|
|
|
var rootIDs = [
|
|
"React",
|
|
"ReactWithAddons"
|
|
];
|
|
|
|
|
|
var normal = {
|
|
rootIDs: rootIDs,
|
|
getConfig: function() {
|
|
return {
|
|
commonerConfig: grunt.config.data.pkg.commonerConfig,
|
|
constants: {}
|
|
};
|
|
},
|
|
sourceDir: "src",
|
|
outputDir: "build/modules"
|
|
};
|
|
|
|
|
|
var test = {
|
|
rootIDs: rootIDs.concat([
|
|
"test/all.js",
|
|
"**/__tests__/*.js"
|
|
]),
|
|
getConfig: function() {
|
|
return _.merge({}, normal.getConfig(), {
|
|
mocking: true
|
|
});
|
|
},
|
|
sourceDir: "src",
|
|
outputDir: "build/modules"
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
normal: normal,
|
|
test: test
|
|
};
|