From 07c18d602ec47215c0390096a3fa66b40004d041 Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期二, 09 二月 2021 23:47:14 +0800 Subject: [PATCH] chore: add some notes --- package.json | 38 ++++++++++++++++++-------------------- 1 files changed, 18 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index dc4e789..5d321cb 100644 --- a/package.json +++ b/package.json @@ -17,15 +17,18 @@ "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", - "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap" + "lint:ls-lint": "ls-lint", + "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js", + "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", + "postinstall": "is-ci || husky install" }, "dependencies": { "@iconify/iconify": "^2.0.0-rc.6", - "@vueuse/core": "^4.0.12", + "@vueuse/core": "^4.1.0", "ant-design-vue": "2.0.0", "apexcharts": "^3.24.0", "axios": "^0.21.1", - "crypto-es": "^1.2.6", + "crypto-es": "^1.2.7", "echarts": "^4.9.0", "lodash-es": "^4.17.20", "mockjs": "^1.1.0", @@ -46,7 +49,7 @@ "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", - "@iconify/json": "^1.1.298", + "@iconify/json": "^1.1.299", "@ls-lint/ls-lint": "^1.9.2", "@purge-icons/generated": "^0.6.0", "@types/echarts": "^4.9.3", @@ -61,11 +64,11 @@ "@types/sortablejs": "^1.10.6", "@types/yargs": "^16.0.0", "@types/zxcvbn": "^4.4.0", - "@typescript-eslint/eslint-plugin": "^4.14.2", - "@typescript-eslint/parser": "^4.14.2", + "@typescript-eslint/eslint-plugin": "^4.15.0", + "@typescript-eslint/parser": "^4.15.0", "@vitejs/plugin-legacy": "^1.2.3", "@vitejs/plugin-vue": "^1.1.4", - "@vitejs/plugin-vue-jsx": "^1.0.2", + "@vitejs/plugin-vue-jsx": "^1.0.3", "@vue/compiler-sfc": "^3.0.5", "@vuedx/typecheck": "^0.6.3", "@vuedx/typescript-plugin-vue": "^0.6.3", @@ -80,7 +83,8 @@ "eslint-plugin-vue": "^7.5.0", "esno": "^0.4.3", "fs-extra": "^9.1.0", - "husky": "^4.3.8", + "husky": "^5.0.9", + "is-ci": "^2.0.0", "less": "^4.1.1", "lint-staged": "^10.5.4", "prettier": "^2.2.1", @@ -93,14 +97,14 @@ "stylelint-order": "^4.1.0", "ts-node": "^9.1.1", "typescript": "^4.1.3", - "vite": "2.0.0-beta.65", + "vite": "2.0.0-beta.66", "vite-plugin-html": "^2.0.0", - "vite-plugin-imagemin": "^0.2.2", - "vite-plugin-mock": "^2.1.0", + "vite-plugin-imagemin": "^0.2.5", + "vite-plugin-mock": "^2.1.4", "vite-plugin-purge-icons": "^0.6.0", - "vite-plugin-pwa": "^0.4.4", - "vite-plugin-style-import": "^0.7.0", - "vite-plugin-theme": "^0.4.0", + "vite-plugin-pwa": "^0.4.6", + "vite-plugin-style-import": "^0.7.2", + "vite-plugin-theme": "^0.4.2", "vue-eslint-parser": "^7.4.1", "yargs": "^16.2.0" }, @@ -117,12 +121,6 @@ "url": "https://github.com/anncwb/vue-vben-admin/issues" }, "homepage": "https://github.com/anncwb/vue-vben-admin", - "husky": { - "hooks": { - "pre-commit": "ls-lint && lint-staged", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } - }, "engines": { "node": "^12 || ^14 || ^15 || ^16" } -- Gitblit v1.8.0