mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b227837b0c
People may have a bad time if they're depending on these but we can delay that a little bit. Unless they're using directly and not polyfilling Object.assign.
50 lines
762 B
JavaScript
50 lines
762 B
JavaScript
'use strict';
|
|
|
|
var grunt = require('grunt');
|
|
var _ = require('lodash');
|
|
|
|
var rootIDs = [
|
|
"React",
|
|
"ReactWithAddons"
|
|
];
|
|
|
|
// TODO: stop packaging these libraries
|
|
rootIDs = rootIDs.concat([
|
|
"merge",
|
|
"mergeInto",
|
|
"copyProperties"
|
|
]);
|
|
|
|
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
|
|
};
|