mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Issue number: N/A --------- <!-- Please refer to our contributing documentation for any questions on submitting a pull request, or let us know here if you need any help: https://ionicframework.com/docs/building/contributing --> <!-- Some docs updates need to be made in the `ionic-docs` repo, in a separate PR. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation for details. --> <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> This is the first PR to introduce the infrastructure required to add test generators to the Ionic Framework project. This PR introduces the file name changes necessary to support two playwright configs, so I recommend reviewing the PR by commit:1e5012cea1- Created a `playwright.config-legacy.ts` file and updates `package.json`. - Running `npm run test.e2e` will run the generator tests, and running `npm run test.e2e.legacy` will run the legacy tests.4fe8de7df7- Updates the GitHub Action scripts to run both the modern and legacy E2E tests. I added command modifiers to avoid collisions with output directories.e8bcfaf926- Updates `*.e2e.ts` files to have the legacy format name: `*.e2e-legacy.ts`. This naming scheme is required for the two Playwright configs to pull in the correct files. When migrating tests to generators, team members will rename the file to remove the `-legacy` part.5bf196c36d(warning: lots of files!) - Updates the `*.e2e.ts-snapshots` directories to have the legacy format name: `*.e2e-legacy.ts-snapshots`. The screenshot directory in Playwright is generated based on the test file name which is why we are updating the screenshot directory. When migrating tests to generators, team members will rename the directory to remove the `-legacy` part. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
113 lines
3.8 KiB
JSON
113 lines
3.8 KiB
JSON
{
|
|
"name": "@ionic/core",
|
|
"version": "7.0.4",
|
|
"description": "Base components for Ionic",
|
|
"keywords": [
|
|
"ionic",
|
|
"framework",
|
|
"stencil",
|
|
"mobile",
|
|
"app",
|
|
"webapp",
|
|
"capacitor",
|
|
"cordova",
|
|
"electron",
|
|
"progressive web app",
|
|
"pwa"
|
|
],
|
|
"main": "dist/index.cjs.js",
|
|
"module": "dist/index.js",
|
|
"es2015": "dist/esm/index.js",
|
|
"es2017": "dist/esm/index.js",
|
|
"jsnext:main": "dist/esm/index.js",
|
|
"collection:main": "dist/collection/index.js",
|
|
"collection": "dist/collection/collection-manifest.json",
|
|
"types": "dist/types/interface.d.ts",
|
|
"files": [
|
|
"components/",
|
|
"css/",
|
|
"dist/",
|
|
"hydrate/",
|
|
"loader/"
|
|
],
|
|
"dependencies": {
|
|
"@stencil/core": "^3.2.1",
|
|
"ionicons": "^7.1.0",
|
|
"tslib": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.6.1",
|
|
"@ionic/eslint-config": "^0.3.0",
|
|
"@ionic/prettier-config": "^2.0.0",
|
|
"@jest/core": "^27.5.1",
|
|
"@playwright/test": "^1.32.3",
|
|
"@rollup/plugin-node-resolve": "^8.4.0",
|
|
"@rollup/plugin-virtual": "^2.0.3",
|
|
"@stencil/angular-output-target": "^0.6.0",
|
|
"@stencil/react-output-target": "^0.5.0",
|
|
"@stencil/sass": "^3.0.0",
|
|
"@stencil/vue-output-target": "^0.8.2",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/node": "^14.6.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
"@typescript-eslint/parser": "^5.17.0",
|
|
"clean-css-cli": "^5.6.1",
|
|
"domino": "^2.1.6",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-custom-rules": "file:custom-rules",
|
|
"execa": "^5.0.0",
|
|
"fs-extra": "^9.0.1",
|
|
"jest": "^27.5.1",
|
|
"jest-cli": "^27.5.1",
|
|
"prettier": "^2.6.1",
|
|
"rollup": "^2.26.4",
|
|
"sass": "^1.26.10",
|
|
"serve": "^14.0.1",
|
|
"stylelint": "^13.13.1",
|
|
"stylelint-order": "^4.1.0",
|
|
"typescript": "^4.0.5"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run clean && npm run build.css && stencil build --es5 --docs-json dist/docs.json",
|
|
"build.css": "npm run css.sass && npm run css.minify",
|
|
"build.debug": "npm run clean && stencil build --debug",
|
|
"build.docs.json": "stencil build --docs-json dist/docs.json",
|
|
"clean": "node scripts/clean.js",
|
|
"css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css",
|
|
"css.sass": "sass --embed-sources src/css:./css",
|
|
"eslint": "eslint src",
|
|
"lint": "npm run lint.ts && npm run lint.sass && npm run prettier -- --write --cache",
|
|
"lint.fix": "npm run lint.ts.fix && npm run lint.sass.fix && npm run prettier -- --write --cache",
|
|
"lint.sass": "stylelint \"src/**/*.scss\"",
|
|
"lint.sass.fix": "npm run lint.sass -- --fix",
|
|
"lint.ts": "npm run eslint",
|
|
"lint.ts.fix": "npm run eslint -- --fix",
|
|
"prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next",
|
|
"prerender.e2e": "node scripts/testing/prerender.js",
|
|
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
|
"start": "npm run build.css && stencil build --dev --watch --serve",
|
|
"test": "npm run test.spec && npm run test.e2e",
|
|
"test.spec": "stencil test --spec --max-workers=2",
|
|
"test.spec.debug": "npx --node-arg=\"--inspect-brk\" stencil test --spec",
|
|
"test.e2e": "npx playwright test --config playwright.config.ts",
|
|
"test.e2e.legacy": "npx playwright test --config playwright.config-legacy.ts",
|
|
"test.watch": "jest --watch --no-cache",
|
|
"test.treeshake": "node scripts/treeshaking.js dist/index.js",
|
|
"validate": "npm run lint && npm run test && npm run build && npm run test.treeshake"
|
|
},
|
|
"author": "Ionic Team",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ionic-team/ionic-framework.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/ionic-team/ionic/issues"
|
|
},
|
|
"homepage": "https://ionicframework.com/",
|
|
"jest": {
|
|
"preset": "@stencil/core/testing"
|
|
}
|
|
}
|