2020-07-21 18:18:44 +08:00
|
|
|
{
|
2020-09-15 18:25:32 +08:00
|
|
|
"private": true,
|
2021-09-05 21:42:37 +08:00
|
|
|
"workspaces": [
|
|
|
|
"packages/*"
|
|
|
|
],
|
2020-07-21 18:18:44 +08:00
|
|
|
"scripts": {
|
2020-08-28 11:44:04 +08:00
|
|
|
"cz": "npx git-cz",
|
2020-07-24 18:58:15 +08:00
|
|
|
"test": "jest",
|
2021-09-17 16:42:20 +08:00
|
|
|
"dev": "cd play && vite",
|
2020-07-24 20:23:14 +08:00
|
|
|
"gen": "bash ./scripts/gc.sh",
|
2021-08-24 13:36:48 +08:00
|
|
|
"gen:version": "esno build/gen-version.ts",
|
2021-09-04 19:29:28 +08:00
|
|
|
"update:version": "esno build/update-version.ts",
|
2021-09-18 13:46:40 +08:00
|
|
|
"bootstrap": "yarn --frozen-lockfile && npx lerna bootstrap && cd docs && yarn",
|
2021-07-23 16:35:20 +08:00
|
|
|
"clean:lib": "rimraf lib && rimraf es && rimraf dist",
|
2021-09-15 01:13:36 +08:00
|
|
|
"build": "sh scripts/build.sh",
|
2021-08-24 13:36:48 +08:00
|
|
|
"build:helper": "esno build/build-helper.ts",
|
2021-08-24 16:52:44 +08:00
|
|
|
"build:indices": "esno build/build-indices.ts",
|
2021-08-24 13:36:48 +08:00
|
|
|
"build:comps": "rimraf dist/components && esno build/components.ts",
|
|
|
|
"build:style": "gulp --cwd ./build",
|
2021-09-15 01:13:36 +08:00
|
|
|
"build:prod": "sh scripts/publish.sh",
|
2021-08-24 13:36:48 +08:00
|
|
|
"build:directives": "cd packages/directives && yarn clean && yarn build",
|
|
|
|
"build:hooks": "cd packages/hooks && yarn clean && yarn build",
|
|
|
|
"build:locale": "cd packages/locale && yarn clean && yarn build",
|
|
|
|
"build:theme": "cd packages/theme-chalk && yarn clean && yarn build",
|
|
|
|
"build:utils": "cd packages/utils && yarn clean && yarn build",
|
|
|
|
"build:tokens": "cd packages/tokens && yarn clean && yarn build",
|
|
|
|
"build:full-bundle": "esno build/full-bundle.ts",
|
2021-09-05 00:53:31 +08:00
|
|
|
"format": "prettier --write .",
|
2021-09-17 15:27:31 +08:00
|
|
|
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx && prettier --check .",
|
|
|
|
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx && prettier --write .",
|
2021-09-17 00:18:50 +08:00
|
|
|
"docs:dev": "if [ ! -d \"dist/element-plus\" ]; then sh scripts/build.sh; fi && yarn docs:gen-locale && cd docs && yarn dev",
|
|
|
|
"docs:build": "cd docs && yarn build",
|
|
|
|
"docs:serve": "cd docs && yarn serve",
|
2021-09-18 13:46:40 +08:00
|
|
|
"docs:gen-locale": "rimraf docs/.vitepress/i18n && esno build/crowdin-generate.ts",
|
|
|
|
"docs:crowdin": "esno build/crowdin-credentials.ts",
|
|
|
|
"prepare": "husky install",
|
|
|
|
"postinstall": "yarn gen:version"
|
2020-07-21 18:18:44 +08:00
|
|
|
},
|
2021-09-05 21:42:37 +08:00
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{vue,js,ts,jsx,tsx}": [
|
|
|
|
"eslint --fix",
|
|
|
|
"prettier --write"
|
|
|
|
],
|
|
|
|
"*.{scss,css,json,yaml,yml,md,html}": "prettier --write"
|
|
|
|
},
|
|
|
|
"browserslist": [
|
|
|
|
"> 1%",
|
|
|
|
"not ie 11",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
2020-07-24 15:15:28 +08:00
|
|
|
"peerDependencies": {
|
2021-08-25 17:34:57 +08:00
|
|
|
"vue": "^3.2.0"
|
2020-07-21 18:18:44 +08:00
|
|
|
},
|
2021-09-05 21:42:37 +08:00
|
|
|
"dependencies": {
|
|
|
|
"@element-plus/icons": "^0.0.11",
|
|
|
|
"@popperjs/core": "^2.10.1",
|
2021-09-14 23:22:59 +08:00
|
|
|
"@vueuse/core": "~6.1.0",
|
2021-09-05 21:42:37 +08:00
|
|
|
"async-validator": "^3.4.0",
|
|
|
|
"dayjs": "1.x",
|
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"normalize-wheel": "^1.0.1",
|
|
|
|
"resize-observer-polyfill": "^1.5.1"
|
|
|
|
},
|
2020-07-21 18:18:44 +08:00
|
|
|
"devDependencies": {
|
2021-09-05 19:57:35 +08:00
|
|
|
"@babel/cli": "^7.15.4",
|
|
|
|
"@babel/core": "^7.15.5",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
|
|
"@babel/plugin-transform-runtime": "^7.15.0",
|
|
|
|
"@babel/preset-env": "^7.15.4",
|
|
|
|
"@babel/preset-typescript": "^7.15.0",
|
2021-09-05 01:33:56 +08:00
|
|
|
"@commitlint/cli": "^13.1.0",
|
|
|
|
"@commitlint/config-conventional": "^13.1.0",
|
2021-08-24 13:36:48 +08:00
|
|
|
"@rollup/plugin-alias": "^3.1.5",
|
2020-09-30 18:21:47 +08:00
|
|
|
"@rollup/plugin-commonjs": "^15.1.0",
|
|
|
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
|
|
"@rollup/plugin-typescript": "^6.0.0",
|
2020-08-29 23:24:10 +08:00
|
|
|
"@types/jest": "^26.0.10",
|
|
|
|
"@types/lodash": "^4.14.161",
|
2021-09-15 01:13:36 +08:00
|
|
|
"@types/through2": "^2.0.36",
|
2021-09-05 19:57:35 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.30.0",
|
|
|
|
"@typescript-eslint/parser": "^4.30.0",
|
2021-09-17 16:42:20 +08:00
|
|
|
"@vitejs/plugin-vue": "^1.6.2",
|
2021-09-05 16:27:17 +08:00
|
|
|
"@vue/babel-plugin-jsx": "^1.0.7",
|
|
|
|
"@vue/compiler-sfc": "^3.2.8",
|
|
|
|
"@vue/component-compiler-utils": "^3.2.2",
|
2021-09-05 19:57:35 +08:00
|
|
|
"algoliasearch": "^4.10.5",
|
2020-09-21 15:39:53 +08:00
|
|
|
"babel-jest": "^26.3.0",
|
2020-11-10 14:24:09 +08:00
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
2021-09-05 19:57:35 +08:00
|
|
|
"babel-plugin-module-resolver": "^4.1.0",
|
2020-07-24 19:20:37 +08:00
|
|
|
"babel-preset-vue": "^2.0.2",
|
2021-09-05 16:27:17 +08:00
|
|
|
"chalk": "^4.1.2",
|
2021-01-31 18:42:29 +08:00
|
|
|
"clipboard-copy": "^4.0.1",
|
2021-09-05 16:27:17 +08:00
|
|
|
"components-helper": "^1.0.4",
|
|
|
|
"cross-env": "^7.0.3",
|
2020-08-29 23:24:10 +08:00
|
|
|
"cz-conventional-changelog": "^3.3.0",
|
2021-09-05 19:57:35 +08:00
|
|
|
"esbuild": "^0.12.25",
|
2020-08-29 23:24:10 +08:00
|
|
|
"eslint": "^7.7.0",
|
2021-09-04 19:29:28 +08:00
|
|
|
"eslint-config-prettier": "^8.3.0",
|
2021-09-17 15:27:31 +08:00
|
|
|
"eslint-plugin-import": "^2.24.2",
|
2021-09-04 19:29:28 +08:00
|
|
|
"eslint-plugin-prettier": "^4.0.0",
|
2020-07-27 16:17:41 +08:00
|
|
|
"eslint-plugin-vue": "^7.0.0-beta.0",
|
2021-08-24 13:36:48 +08:00
|
|
|
"esno": "^0.9.1",
|
|
|
|
"fast-glob": "^3.2.7",
|
2020-11-10 14:24:09 +08:00
|
|
|
"file-save": "^0.2.0",
|
2021-08-24 13:36:48 +08:00
|
|
|
"gulp": "^4.0.2",
|
|
|
|
"gulp-typescript": "^6.0.0-alpha.1",
|
2021-09-05 01:33:56 +08:00
|
|
|
"husky": "^7.0.2",
|
2020-09-23 20:18:11 +08:00
|
|
|
"import-from": "^3.0.0",
|
2021-01-07 11:22:54 +08:00
|
|
|
"jest": "^26.6.3",
|
2020-07-24 23:25:03 +08:00
|
|
|
"lerna": "^3.22.1",
|
2021-09-05 01:33:56 +08:00
|
|
|
"lint-staged": "^11.1.2",
|
2021-09-04 19:29:28 +08:00
|
|
|
"prettier": "^2.3.2",
|
2020-09-15 16:10:32 +08:00
|
|
|
"rimraf": "^3.0.2",
|
2021-09-05 19:57:35 +08:00
|
|
|
"rollup": "^2.56.3",
|
2020-09-30 18:21:47 +08:00
|
|
|
"rollup-plugin-css-only": "^2.1.0",
|
2021-09-05 19:57:35 +08:00
|
|
|
"rollup-plugin-esbuild": "^4.5.0",
|
2021-08-24 13:36:48 +08:00
|
|
|
"rollup-plugin-filesize": "^9.1.1",
|
2021-08-30 21:38:16 +08:00
|
|
|
"rollup-plugin-replace": "^2.2.0",
|
2020-09-30 18:21:47 +08:00
|
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
|
|
"rollup-plugin-typescript2": "^0.27.3",
|
2021-06-03 13:05:21 +08:00
|
|
|
"rollup-plugin-vue": "^6.0.0",
|
2021-09-05 19:57:35 +08:00
|
|
|
"sass": "^1.39.0",
|
2020-08-29 23:24:10 +08:00
|
|
|
"throttle-debounce": "2.3.0",
|
2021-08-24 13:36:48 +08:00
|
|
|
"through2": "^4.0.2",
|
2021-07-23 16:35:20 +08:00
|
|
|
"ts-morph": "^11.0.3",
|
2021-08-31 17:57:35 +08:00
|
|
|
"ts-node": "^10.1.0",
|
2021-09-05 19:57:35 +08:00
|
|
|
"typescript": "^4.4.2",
|
2021-09-17 16:42:20 +08:00
|
|
|
"vite": "^2.5.8",
|
2021-08-25 17:34:57 +08:00
|
|
|
"vue": "^3.2.0",
|
2020-12-01 10:28:42 +08:00
|
|
|
"vue-jest": "5.0.0-alpha.5",
|
2020-12-31 11:11:45 +08:00
|
|
|
"vue-router": "^4.0.2",
|
2021-09-17 09:07:30 +08:00
|
|
|
"vue-tsc": "^0.3.0"
|
2021-09-05 21:42:37 +08:00
|
|
|
}
|
2020-07-21 18:18:44 +08:00
|
|
|
}
|