react/fixtures/packaging
Jan Kassens 6b30832666
Upgrade prettier (#26081)
The old version of prettier we were using didn't support the Flow syntax
to access properties in a type using `SomeType['prop']`. This updates
`prettier` and `rollup-plugin-prettier` to the latest versions.

I added the prettier config `arrowParens: "avoid"` to reduce the diff
size as the default has changed in Prettier 2.0. The largest amount of
changes comes from function expressions now having a space. This doesn't
have an option to preserve the old behavior, so we have to update this.
2023-01-31 08:25:05 -05:00
..
babel-standalone Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
browserify Bump shell-quote in /fixtures/packaging/browserify/dev (#24773) 2022-09-08 14:26:04 +00:00
brunch Bump qs from 6.4.0 to 6.4.1 in /fixtures/packaging/brunch/dev (#25822) 2022-12-07 15:50:36 +00:00
globals Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
requirejs Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
rjs Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
systemjs Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
systemjs-builder Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
webpack Bump qs from 6.4.0 to 6.4.1 in /fixtures/packaging/webpack/dev (#25824) 2022-12-07 15:50:16 +00:00
webpack-alias Bump qs from 6.4.0 to 6.4.1 in /fixtures/packaging/webpack-alias/prod (#25823) 2022-12-07 15:58:42 +00: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.