react/fixtures/packaging
Dan Abramov 1ebeb0542f
Move npm output from build/packages/* to build/node_modules/* (#11962)
* Move build/packages/* to build/node_modules/*

This fixes Node resolution in that folder and lets us require() packages in it in Node shell for manual testing.

* Link fixtures to packages/node_modules

This updates the location and also uses link: instead of file: to avoid Yarn caching the folder contents.
2018-01-04 19:01:31 +00:00
..
babel-standalone Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
browserify Move npm output from build/packages/* to build/node_modules/* (#11962) 2018-01-04 19:01:31 +00:00
brunch Move npm output from build/packages/* to build/node_modules/* (#11962) 2018-01-04 19:01:31 +00:00
globals Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
requirejs Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
rjs Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
systemjs Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
systemjs-builder Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
webpack Move npm output from build/packages/* to build/node_modules/* (#11962) 2018-01-04 19:01:31 +00:00
webpack-alias Move npm output from build/packages/* to build/node_modules/* (#11962) 2018-01-04 19:01:31 +00:00
README.md Fix typos (#11204) 2017-10-14 16:26:10 -04:00
build-all.js Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
index.html Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00

README.md

Manual Testing Fixtures

This folder exists for React contributors only.
If you use React, you don't need to worry about it.

These fixtures verify that the built React distributions are usable in different environments.
They are not running automatically. (At least not yet. Feel free to contribute to automate them.)

Run them when you make changes to how we package React and ReactDOM.

How to Run

First, build React and the fixtures:

cd react
npm run build

cd fixtures/packaging
node build-all.js

Then run a local server at the root of the repo, e.g.

npm i -g pushstate-server
cd ../..
pushstate-server .

(Too complicated? Send a PR to simplify this :-)).

Then open the following URL in your browser:

open http://localhost:9000/fixtures/packaging/index.html

You should see two things:

  • "Hello World" is rendered in each iframe.
  • No errors in the console.