Skip to content

Commit

Permalink
Merge pull request #3785 from iamdustan/addons
Browse files Browse the repository at this point in the history
npm build: create addons directory that loads from lib. Closes #3780
  • Loading branch information
sophiebits committed Apr 29, 2015
2 parents 571c327 + 5cfb712 commit a092b47
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions npm-react/addons.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
var warning = require('./lib/warning');
warning(
false,
'require("react/addons") is deprecated. ' +
'Access using require("react/addons/{addon}") instead.'
);

module.exports = require('./lib/ReactWithAddons');
1 change: 1 addition & 0 deletions npm-react/addons/CSSTransitionGroup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactCSSTransitionGroup');
1 change: 1 addition & 0 deletions npm-react/addons/LinkedStateMixin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/LinkedStateMixin');
1 change: 1 addition & 0 deletions npm-react/addons/Perf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactDefaultPerf');
1 change: 1 addition & 0 deletions npm-react/addons/PureRenderMixin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactComponentWithPureRenderMixin');
1 change: 1 addition & 0 deletions npm-react/addons/TestUtils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactTestUtils');
1 change: 1 addition & 0 deletions npm-react/addons/TransitionGroup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactTransitionGroup');
1 change: 1 addition & 0 deletions npm-react/addons/batchedUpdates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactUpdates').batchedUpdates;
1 change: 1 addition & 0 deletions npm-react/addons/cloneWithProps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/cloneWithProps');
1 change: 1 addition & 0 deletions npm-react/addons/createFragment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/ReactFragment').create;
1 change: 1 addition & 0 deletions npm-react/addons/renderSubtreeIntoContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/renderSubtreeIntoContainer');
1 change: 1 addition & 0 deletions npm-react/addons/shallowCompare.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/shallowCompare');
1 change: 1 addition & 0 deletions npm-react/addons/update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/update');
1 change: 1 addition & 0 deletions npm-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"files": [
"addons.js",
"react.js",
"addons/",
"dist/",
"lib/"
],
Expand Down

0 comments on commit a092b47

Please sign in to comment.