mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
fb94222bb4
* build: refactor build * refactor: reorganize files * refactor: refactor build * build: improve perf * fix: scripts * build: add rollup-plugin-filesize * chore: scripts ignore no-console * build: disable tree-shaking * build: improve code * build: add sourcemap * build: add banner * refactor: remove annotation
124 lines
3.8 KiB
JSON
124 lines
3.8 KiB
JSON
{
|
|
"private": true,
|
|
"packageManager": "pnpm@6.15.1",
|
|
"workspaces": [
|
|
"packages/*",
|
|
"play",
|
|
"docs"
|
|
],
|
|
"engines": {
|
|
"node": ">= 16"
|
|
},
|
|
"scripts": {
|
|
"cz": "git-cz",
|
|
"test": "jest",
|
|
"dev": "pnpm -C play dev",
|
|
"gen": "bash ./scripts/gc.sh",
|
|
"gen:version": "sucrase-node scripts/gen-version.ts",
|
|
"update:version": "sucrase-node scripts/update-version.ts",
|
|
"clean": "pnpm run clean:lib && pnpm run clean -r --stream",
|
|
"clean:lib": "rimraf dist",
|
|
"build": "gulp --require sucrase/register/ts -f build/gulpfile.ts",
|
|
"format": "prettier --write .",
|
|
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --max-warnings 0 && pretty-quick --check --branch dev",
|
|
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx && pretty-quick --branch dev",
|
|
"docs:dev": "pnpm run -C docs dev",
|
|
"docs:build": "pnpm run -C docs build",
|
|
"docs:serve": "pnpm run -C docs serve",
|
|
"docs:gen-locale": "pnpm run -C docs gen-locale",
|
|
"docs:crowdin-credentials": "pnpm run -C docs crowdin-credentials",
|
|
"prepare": "husky install",
|
|
"postinstall": "pnpm gen:version"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{vue,js,ts,jsx,tsx}": "eslint --fix"
|
|
},
|
|
"browserslist": [
|
|
"> 1%",
|
|
"not ie 11",
|
|
"not op_mini all"
|
|
],
|
|
"peerDependencies": {
|
|
"vue": "^3.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/components": "workspace:*",
|
|
"@element-plus/directives": "workspace:*",
|
|
"@element-plus/hooks": "workspace:*",
|
|
"@element-plus/icons": "^0.0.11",
|
|
"@element-plus/locale": "workspace:*",
|
|
"@element-plus/test-utils": "workspace:*",
|
|
"@element-plus/theme-chalk": "workspace:*",
|
|
"@element-plus/tokens": "workspace:*",
|
|
"@element-plus/utils": "workspace:*",
|
|
"@popperjs/core": "^2.10.2",
|
|
"@vueuse/core": "~6.1.0",
|
|
"async-validator": "^4.0.3",
|
|
"dayjs": "^1.10.7",
|
|
"lodash": "^4.17.21",
|
|
"memoize-one": "^5.2.1",
|
|
"normalize-wheel-es": "^1.1.0",
|
|
"resize-observer-polyfill": "^1.5.1"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^13.2.1",
|
|
"@commitlint/config-conventional": "^13.2.0",
|
|
"@pnpm/find-workspace-packages": "^3.1.17",
|
|
"@pnpm/logger": "^4.0.0",
|
|
"@pnpm/types": "^7.4.0",
|
|
"@rollup/plugin-commonjs": "^15.1.0",
|
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
"@rollup/plugin-replace": "^3.0.0",
|
|
"@sucrase/jest-plugin": "^2.1.1",
|
|
"@types/gulp": "^4.0.9",
|
|
"@types/jest": "^26.0.24",
|
|
"@types/lodash": "^4.14.175",
|
|
"@types/sass": "^1.16.1",
|
|
"@types/through2": "^2.0.36",
|
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
"@typescript-eslint/parser": "^5.0.0",
|
|
"@vue/compiler-sfc": "^3.2.20",
|
|
"@vue/test-utils": "2.0.0-rc.15",
|
|
"chalk": "^4.1.2",
|
|
"components-helper": "^1.0.4",
|
|
"cz-conventional-changelog": "^3.3.0",
|
|
"esbuild": "~0.13.6",
|
|
"eslint": "^8.0.1",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-define-config": "^1.1.1",
|
|
"eslint-plugin-import": "^2.25.2",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"eslint-plugin-vue": "^7.19.1",
|
|
"expect-type": "^0.12.0",
|
|
"fast-glob": "^3.2.7",
|
|
"gulp": "^4.0.2",
|
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
"husky": "^7.0.2",
|
|
"jest": "^26.6.3",
|
|
"lint-staged": "^11.2.3",
|
|
"prettier": "^2.4.1",
|
|
"pretty-quick": "^3.1.1",
|
|
"rimraf": "^3.0.2",
|
|
"rollup": "^2.58.0",
|
|
"rollup-plugin-css-only": "^3.1.0",
|
|
"rollup-plugin-esbuild": "^4.5.0",
|
|
"rollup-plugin-filesize": "^9.1.1",
|
|
"rollup-plugin-vue": "^6.0.0",
|
|
"sass": "^1.43.2",
|
|
"sucrase": "^3.20.2",
|
|
"through2": "^4.0.2",
|
|
"ts-jest": "^26.5.6",
|
|
"ts-morph": "^12.0.0",
|
|
"typescript": "^4.4.4",
|
|
"vue": "^3.2.20",
|
|
"vue-jest": "5.0.0-alpha.10",
|
|
"vue-router": "^4.0.12",
|
|
"vue-tsc": "^0.28.4"
|
|
}
|
|
}
|