mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
<!-- 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. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> Following the Design Doc for the new Ionic Design System, an architecture for Design Tokens was added. 1. Added new `foundations` folder inside the `src`, to hold all the tokens related files. 2. On this file, a json with all the tokens for the new Design System was added. The format followed was the one suggested on the [W3C draft](https://design-tokens.github.io/community-group/format/). 3. Added a dev dependency for [Styles Dictionary](https://amzn.github.io/style-dictionary/#/), version 3.9.2. 4. Added a tokens.js script that will take care of transforming the json tokens into the desired output. For now, three files are being generated: ionic.vars.css (:root with all CSS Variables); ionic.vars.css (scss variables for each token) and ionic.utility.css (a new utility-class for each token) 5. Added the script `npm run build.tokens` to package.json, that will generate the three files mentioned above. For now, all these changes bring no impact to the rest of the Framework, as these variables are not yet being consumed. The `margin`, `padding` and `border-radius` were removed from the prohibited properties on lint, to prevent lint errors with the new utility-classes. This is very open to discussion/feedback if it's seen as not ok. The `build` command now includes the `build.tokens` script, to make sure the files are always generated, in case someone forget to run the command, after changing the json file! ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 6. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> --------- Co-authored-by: Sean Perkins <13732623+sean-perkins@users.noreply.github.com>
120 lines
4.4 KiB
JSON
120 lines
4.4 KiB
JSON
{
|
|
"name": "@ionic/core",
|
|
"version": "8.0.0-beta.3",
|
|
"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": "^4.12.2",
|
|
"ionicons": "^7.2.2",
|
|
"tslib": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.8.5",
|
|
"@capacitor/core": "^5.7.0",
|
|
"@capacitor/haptics": "^5.0.7",
|
|
"@capacitor/keyboard": "^5.0.8",
|
|
"@capacitor/status-bar": "^5.0.7",
|
|
"@ionic/eslint-config": "^0.3.0",
|
|
"@ionic/prettier-config": "^2.0.0",
|
|
"@playwright/test": "^1.39.0",
|
|
"@rollup/plugin-node-resolve": "^8.4.0",
|
|
"@rollup/plugin-virtual": "^2.0.3",
|
|
"@stencil/angular-output-target": "^0.8.4",
|
|
"@stencil/react-output-target": "^0.5.3",
|
|
"@stencil/sass": "^3.0.9",
|
|
"@stencil/vue-output-target": "^0.8.7",
|
|
"@types/jest": "^29.5.6",
|
|
"@types/node": "^14.6.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
"@typescript-eslint/parser": "^6.7.2",
|
|
"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": "^29.7.0",
|
|
"jest-cli": "^29.7.0",
|
|
"prettier": "^2.6.1",
|
|
"rollup": "^2.26.4",
|
|
"sass": "^1.33.0",
|
|
"serve": "^14.0.1",
|
|
"style-dictionary": "^3.9.2",
|
|
"stylelint": "^13.13.1",
|
|
"stylelint-order": "^4.1.0"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run clean && npm run build.tokens && 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",
|
|
"build.tokens": "node ./scripts/tokens.js && npm run lint.sass.fix",
|
|
"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",
|
|
"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.e2e": "npx playwright test",
|
|
"test.e2e.update-snapshots": "npm run test.e2e -- --update-snapshots",
|
|
"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",
|
|
"docker.build": "docker build -t ionic-playwright .",
|
|
"test.e2e.docker": "npm run docker.build && docker run -it --rm -e DISPLAY=$(cat docker-display.txt) -v $(cat docker-display-volume.txt) --ipc=host --mount=type=bind,source=./,target=/ionic ionic-playwright npm run test.e2e --",
|
|
"test.e2e.docker.update-snapshots": "npm run test.e2e.docker -- --update-snapshots",
|
|
"test.e2e.docker.ci": "npm run docker.build && docker run -e CI='true' --rm --ipc=host --mount=type=bind,source=./,target=/ionic ionic-playwright npm run test.e2e --",
|
|
"test.report": "npx playwright show-report"
|
|
},
|
|
"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"
|
|
}
|
|
}
|