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).
63 lines
1.7 KiB
JSON
63 lines
1.7 KiB
JSON
{
|
|
"name": "test-app",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@ionic/react": "^7.0.0",
|
|
"@ionic/react-router": "^7.0.0",
|
|
"@types/react": "^18.0.28",
|
|
"@types/react-dom": "^18.0.11",
|
|
"ionicons": "^6.0.4",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router": "^6.0.0",
|
|
"react-router-dom": "^6.0.0",
|
|
"react-scripts": "^5.0.0",
|
|
"typescript": "^4.1.3"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"test": "react-scripts test --env=jsdom --transformIgnorePatterns 'node_modules/(?!(@ionic/react|@ionic/react-router|@ionic/core|@stencil/core|ionicons)/)'",
|
|
"eject": "react-scripts eject",
|
|
"sync": "sh ./scripts/sync.sh",
|
|
"cypress": "cypress run --headless --browser chrome",
|
|
"cypress.open": "cypress open",
|
|
"e2e": "concurrently \"serve -s build -l 3000\" \"wait-on http-get://localhost:3000 && npm run cypress\" --kill-others --success first"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.4.3",
|
|
"@types/jest": "^27.4.1",
|
|
"@types/node": "^17.0.21",
|
|
"concurrently": "^6.3.0",
|
|
"cypress": "^10.9.0",
|
|
"serve": "^14.0.1",
|
|
"wait-on": "^6.0.0",
|
|
"webpack-cli": "^4.9.1"
|
|
},
|
|
"description": "An Ionic project",
|
|
"engines": {
|
|
"node": ">= 16"
|
|
}
|
|
}
|