Skip to content

Commit

Permalink
Remove all cruft from manually testing addons in fixtures
Browse files Browse the repository at this point in the history
**what is the change?:**
We forked three of the fixtures into two variations to test two of the
react addons. We also added `console.log` statements to the addons to
verify that we were loading the right build.

This commit cleans it up by
- deleting forked fixtures
- re-adding the original fixtures
- removing `console.log` statements

**why make this change?:**
To get this branch ready for review.

**test plan:**
`cd fixtures && node ./build-all.js` and then check the updated fixtures
manually

**issue:**
#9765
  • Loading branch information
flarnie committed Jun 10, 2017
1 parent 862b57d commit 3eebf12
Show file tree
Hide file tree
Showing 39 changed files with 86 additions and 7,638 deletions.
4 changes: 0 additions & 4 deletions addons/create-react-class/create-react-class.js
@@ -1,13 +1,9 @@
(function(f) {
console.log('here in addons');
if (typeof exports === "object" && typeof module !== "undefined") {
console.log('successfully tested Common JS');
module.exports = f(require('react'));
} else if (typeof define === "function" && define.amd) {
console.log('successfully tested AMD');
define(['react'], f);
} else {
console.log('successfully tested globals');
var g;
if (typeof window !== "undefined") {
g = window;
Expand Down
@@ -1,21 +1,15 @@
(function(f) {
console.log('here in addons');
if (
typeof exports === "object" &&
typeof module !== "undefined"
) {
console.log('successfully tested CommonJS');
console.log('hi');
console.log('require("react") is ', require('react'));
module.exports=f(require('react'))
} else if (
typeof define === "function" &&
define.amd
) {
console.log('successfully tested AMD');
define(['react'],f)
} else {
console.log('successfully tested globals');
var g;
if (typeof window !== "undefined") {
g = window
Expand Down
31 changes: 0 additions & 31 deletions build/packages/create-react-class/LICENSE.txt

This file was deleted.

33 changes: 0 additions & 33 deletions build/packages/create-react-class/PATENTS

This file was deleted.

5 changes: 0 additions & 5 deletions build/packages/create-react-class/README.md

This file was deleted.

0 comments on commit 3eebf12

Please sign in to comment.