mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
This commit does a lot to try and meld the v6 migration to work against the test app. The introduction of `<Routes>` component from react-router means much of the logic around querying the `<Route>` as the direct child of the outlet and also cloning the element, leads to a broken experience. This commit tries to handle that requirement. Additional discovery will try to uncover if we can move the `<Routes>` inside of the outlet so the developer doesn't need to specify it when upgrading (and perhaps can simplify how we query the nodes).
React Test App
Getting Started
Setup
Make sure you are using the latest versions of node and npm. If you do not have these, download the installer for the LTS version of Node.js. This is the best way to also install npm.
Building Dependencies
Navigate to the core, packages/react and packages/react-router directories and build each of them:
npm i
npm run build
Then, install dependencies from this directory for this test app:
npm i
Syncing Changes
When making changes to the React package, run the following from this directory to sync the changes:
npm run sync
Previewing App
To preview this app locally, run the following from this directory:
npm start
Running Tests
To run the e2e tests, run the following from this directory:
npm run build
npm run e2e