2020-07-21 18:18:44 +08:00
|
|
|
{
|
2020-09-15 18:25:32 +08:00
|
|
|
"private": true,
|
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",
|
2020-07-24 20:23:14 +08:00
|
|
|
"gen": "bash ./scripts/gc.sh",
|
2020-11-23 09:50:30 +08:00
|
|
|
"bootstrap": "yarn --frozen-lockfile && npx lerna bootstrap && yarn gen:version",
|
2021-08-24 13:36:48 +08:00
|
|
|
"gen:version": "esno build/gen-version.ts",
|
2021-07-23 16:35:20 +08:00
|
|
|
"clean:lib": "rimraf lib && rimraf es && rimraf dist",
|
2021-08-24 13:36:48 +08:00
|
|
|
"build:locale-umd": "esno ./build/build-locale.ts",
|
|
|
|
"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
|
|
|
"update:version": "esno build/update-version.ts",
|
|
|
|
"build:comps": "rimraf dist/components && esno build/components.ts",
|
|
|
|
"build:style": "gulp --cwd ./build",
|
|
|
|
"build:prod": "sh scripts/monorepo.sh",
|
|
|
|
"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-07-14 09:27:52 +08:00
|
|
|
"format": "yarn format:scss",
|
|
|
|
"format:scss": "prettier --write **/*.scss",
|
2020-08-13 15:18:26 +08:00
|
|
|
"lint": "eslint ./packages --ext .vue,.js,.ts",
|
2020-10-20 10:31:47 +08:00
|
|
|
"lint-fix": "eslint --fix ./packages --ext .vue,.js,.ts",
|
2020-09-24 11:13:53 +08:00
|
|
|
"website-build": "rimraf website-dist && cross-env NODE_ENV=production webpack --config ./website/webpack.config.js",
|
2020-08-25 09:58:26 +08:00
|
|
|
"website-dev": "webpack-dev-server --config ./website/webpack.config.js",
|
2021-08-31 17:57:35 +08:00
|
|
|
"website-dev:play": "cross-env PLAY_ENV=true yarn website-dev"
|
2020-07-21 18:18:44 +08:00
|
|
|
},
|
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
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-11-10 14:24:09 +08:00
|
|
|
"@babel/cli": "^7.12.1",
|
2020-08-29 23:24:10 +08:00
|
|
|
"@babel/core": "^7.11.4",
|
2020-10-19 13:50:22 +08:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
2020-11-10 14:24:09 +08:00
|
|
|
"@babel/plugin-transform-runtime": "^7.12.1",
|
2020-09-21 15:39:53 +08:00
|
|
|
"@babel/preset-env": "^7.11.5",
|
|
|
|
"@babel/preset-typescript": "^7.10.4",
|
2020-08-29 23:24:10 +08:00
|
|
|
"@commitlint/cli": "^9.1.2",
|
|
|
|
"@commitlint/config-conventional": "^9.1.2",
|
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",
|
2021-08-24 13:36:48 +08:00
|
|
|
"@types/klaw-sync": "^6.0.1",
|
2020-08-29 23:24:10 +08:00
|
|
|
"@types/lodash": "^4.14.161",
|
2021-08-27 17:46:06 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.29.3",
|
|
|
|
"@typescript-eslint/parser": "^4.29.3",
|
2020-12-31 11:11:45 +08:00
|
|
|
"@vue/babel-plugin-jsx": "^1.0.0",
|
2021-08-25 17:47:25 +08:00
|
|
|
"@vue/compiler-sfc": "^3.2.0",
|
2021-04-06 11:41:02 +08:00
|
|
|
"@vue/component-compiler-utils": "^3.2.0",
|
2020-08-13 15:18:26 +08:00
|
|
|
"algoliasearch": "^4.4.0",
|
2020-09-21 15:39:53 +08:00
|
|
|
"babel-jest": "^26.3.0",
|
2020-07-24 19:20:37 +08:00
|
|
|
"babel-loader": "^8.1.0",
|
2020-11-10 14:24:09 +08:00
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
|
|
|
"babel-plugin-module-resolver": "^4.0.0",
|
2020-07-24 19:20:37 +08:00
|
|
|
"babel-preset-vue": "^2.0.2",
|
2020-10-30 23:26:57 +08:00
|
|
|
"chalk": "^4.1.0",
|
2021-01-31 18:42:29 +08:00
|
|
|
"clipboard-copy": "^4.0.1",
|
2021-04-06 11:41:02 +08:00
|
|
|
"components-helper": "^1.0.2",
|
2020-08-28 11:09:05 +08:00
|
|
|
"cross-env": "^7.0.2",
|
2020-08-29 23:24:10 +08:00
|
|
|
"css-loader": "^4.2.2",
|
2020-11-10 14:55:03 +08:00
|
|
|
"css-minimizer-webpack-plugin": "^1.1.5",
|
2020-08-29 23:24:10 +08:00
|
|
|
"cz-conventional-changelog": "^3.3.0",
|
2021-06-03 13:05:21 +08:00
|
|
|
"esbuild": "^0.12.5",
|
2020-08-29 23:24:10 +08:00
|
|
|
"eslint": "^7.7.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-08-13 15:18:26 +08:00
|
|
|
"file-loader": "^6.0.0",
|
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-01-07 11:22:54 +08:00
|
|
|
"highlight.js": "^10.4.1",
|
2020-08-13 15:18:26 +08:00
|
|
|
"html-webpack-plugin": "^4.3.0",
|
2020-07-24 23:25:03 +08:00
|
|
|
"husky": "^4.2.5",
|
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",
|
2021-07-23 16:35:20 +08:00
|
|
|
"klaw-sync": "^6.0.0",
|
2020-07-24 23:25:03 +08:00
|
|
|
"lerna": "^3.22.1",
|
2020-08-29 23:24:10 +08:00
|
|
|
"lint-staged": "^10.2.13",
|
2020-08-13 15:18:26 +08:00
|
|
|
"markdown-it": "^11.0.0",
|
|
|
|
"markdown-it-anchor": "^5.3.0",
|
|
|
|
"markdown-it-chain": "^1.3.0",
|
|
|
|
"markdown-it-container": "^3.0.0",
|
2020-09-24 11:13:53 +08:00
|
|
|
"mini-css-extract-plugin": "^0.11.2",
|
2021-07-23 16:35:20 +08:00
|
|
|
"ora": "^5.4.1",
|
2021-08-03 09:12:34 +08:00
|
|
|
"progress-bar-webpack-plugin": "^2.1.0",
|
2020-09-15 16:10:32 +08:00
|
|
|
"rimraf": "^3.0.2",
|
2020-09-30 18:21:47 +08:00
|
|
|
"rollup": "^2.28.2",
|
|
|
|
"rollup-plugin-css-only": "^2.1.0",
|
2021-06-03 13:05:21 +08:00
|
|
|
"rollup-plugin-esbuild": "^4.2.3",
|
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-07-30 17:40:22 +08:00
|
|
|
"sass": "^1.36.0",
|
|
|
|
"sass-loader": "10.1.1",
|
2020-08-13 15:18:26 +08:00
|
|
|
"style-loader": "^1.2.1",
|
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",
|
2020-08-13 15:18:26 +08:00
|
|
|
"transliteration": "^2.1.11",
|
2020-08-29 23:24:10 +08:00
|
|
|
"ts-loader": "^8.0.3",
|
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-08-24 13:36:48 +08:00
|
|
|
"typescript": "^4.3.5",
|
2020-08-13 15:18:26 +08:00
|
|
|
"url-loader": "^4.1.0",
|
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-loader": "^16.1.2",
|
|
|
|
"vue-router": "^4.0.2",
|
2021-08-31 09:40:13 +08:00
|
|
|
"vue-tsc": "^0.3.0",
|
2020-08-13 15:18:26 +08:00
|
|
|
"webpack": "^4.44.1",
|
2020-11-10 14:24:09 +08:00
|
|
|
"webpack-bundle-analyzer": "^3.9.0",
|
2020-08-13 15:18:26 +08:00
|
|
|
"webpack-cli": "^3.3.12",
|
|
|
|
"webpack-dev-server": "^3.11.0"
|
2020-07-21 20:23:49 +08:00
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
|
|
}
|
2020-07-22 00:35:23 +08:00
|
|
|
},
|
2020-07-24 23:25:03 +08:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged",
|
|
|
|
"pre-push-todo-open": "npm run test",
|
|
|
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
2021-07-14 09:27:52 +08:00
|
|
|
"*.{js,ts,vue}": "eslint --fix",
|
|
|
|
"*.{scss}": "prettier --write"
|
2020-07-24 23:25:03 +08:00
|
|
|
},
|
2020-07-22 00:35:23 +08:00
|
|
|
"workspaces": [
|
|
|
|
"packages/*"
|
|
|
|
],
|
|
|
|
"description": "A Component Library for Vue3.0",
|
2020-11-03 11:40:56 +08:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/element-plus/element-plus.git"
|
|
|
|
},
|
2021-01-23 15:14:26 +08:00
|
|
|
"homepage": "https://element-plus.org",
|
2020-07-28 00:32:04 +08:00
|
|
|
"license": "MIT",
|
|
|
|
"dependencies": {
|
2021-07-30 11:29:25 +08:00
|
|
|
"@element-plus/icons": "^0.0.11",
|
2020-08-04 19:03:20 +08:00
|
|
|
"@popperjs/core": "^2.4.4",
|
2020-11-23 14:17:51 +08:00
|
|
|
"async-validator": "^3.4.0",
|
2020-08-25 09:58:26 +08:00
|
|
|
"dayjs": "1.x",
|
2020-08-14 01:37:25 +08:00
|
|
|
"lodash": "^4.17.20",
|
2020-10-20 10:31:47 +08:00
|
|
|
"mitt": "^2.1.0",
|
|
|
|
"normalize-wheel": "^1.0.1",
|
2021-08-30 21:38:16 +08:00
|
|
|
"resize-observer-polyfill": "^1.5.1"
|
2020-09-15 16:10:32 +08:00
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"lib",
|
2020-12-27 23:58:18 +08:00
|
|
|
"es",
|
2021-04-06 11:41:02 +08:00
|
|
|
"packages"
|
2020-09-15 16:10:32 +08:00
|
|
|
],
|
2020-09-15 17:23:41 +08:00
|
|
|
"main": "lib/index.js",
|
2021-07-23 16:35:20 +08:00
|
|
|
"module": "es/index.js",
|
2020-11-26 23:09:31 +08:00
|
|
|
"typings": "lib/index.d.ts",
|
2020-09-15 16:10:32 +08:00
|
|
|
"unpkg": "lib/index.js",
|
|
|
|
"style": "lib/theme-chalk/index.css",
|
2021-04-06 11:41:02 +08:00
|
|
|
"vetur": {
|
|
|
|
"tags": "lib/tags.json",
|
|
|
|
"attributes": "lib/attributes.json"
|
|
|
|
},
|
|
|
|
"web-types": "lib/web-types.json",
|
2020-09-15 16:10:32 +08:00
|
|
|
"browserslist": [
|
2020-11-10 14:24:09 +08:00
|
|
|
"> 1%",
|
2021-08-24 17:36:52 +08:00
|
|
|
"not ie 11",
|
|
|
|
"not op_mini all"
|
2020-09-15 16:10:32 +08:00
|
|
|
]
|
2020-07-21 18:18:44 +08:00
|
|
|
}
|