Files
react/grunt/config/jsx.js
T
Paul O’Shannessy b227837b0c Ship merge to npm
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.
2014-10-13 14:07:39 -07:00

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
};