react/fixtures/packaging
Sebastian Markbåge db5e6250d4
Rename yarn build-combined to just yarn build (#26192)
It's confusing to new contributors, and me, that you're supposed to use
`yarn build-combined` for almost everything but not fixtures.

We should use only one build command for everything.

Updated fixtures to use the folder convention of build-combined.
2023-02-17 16:00:18 -05:00
..
babel-standalone Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
browserify Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
brunch Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
globals Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
requirejs Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
rjs Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
systemjs Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
systemjs-builder Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
webpack Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
webpack-alias Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
README.md update fixtures/packaging/README.md (#14320) 2018-11-24 21:40:56 +00:00
build-all.js Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
index.html Fix packaging fixtures 2018-09-13 19:31:18 +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
node fixtures/packaging/build-all.js

Then run a local server, e.g.

npx pushstate-server .

and open the following URL in your browser: http://localhost:9000/fixtures/packaging/index.html

You should see two things:

  • A number of iframes (corresponding to various builds), with "Hello World" rendered in each iframe.
  • No errors in the console.