From 4c46021389a5bc540b2cc64db85fdb6fb9cb7efb Mon Sep 17 00:00:00 2001 From: xhong Date: Fri, 15 Jul 2022 10:02:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20element-p?= =?UTF-8?q?lus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 4 + jsconfig.json | 1 + package.json | 13 +- src/App.vue | 9 +- vue.config.js | 23 +- yarn.lock | 1118 +++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 1129 insertions(+), 39 deletions(-) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..36af219 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged diff --git a/jsconfig.json b/jsconfig.json index 4aafc5f..fc2b38c 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -4,6 +4,7 @@ "module": "esnext", "baseUrl": "./", "moduleResolution": "node", + "jsx": "preserve", "paths": { "@/*": [ "src/*" diff --git a/package.json b/package.json index a778df8..d7d9b9d 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "dependencies": { "axios": "^0.27.2", "core-js": "^3.8.3", + "element-plus": "1.3.0-beta.5", + "lint-staged": "13.0.3", "vue": "^3.2.13", "vue-router": "^4.0.3", "vuex": "^4.0.0" @@ -25,6 +27,7 @@ "@vue/cli-plugin-router": "~5.0.0", "@vue/cli-plugin-vuex": "~5.0.0", "@vue/cli-service": "~5.0.0", + "@vue/composition-api": "^1.1.0", "@vue/eslint-config-standard": "^6.1.0", "cz-customizable": "^6.3.0", "eslint": "^7.32.0", @@ -34,11 +37,19 @@ "eslint-plugin-vue": "^8.0.3", "husky": "^7.0.1", "sass": "^1.32.7", - "sass-loader": "^12.0.0" + "sass-loader": "^12.0.0", + "unplugin-auto-import": "^0.9.3", + "unplugin-vue-components": "^0.21.1" }, "config": { "commitizen": { "path": "node_modules/cz-customizable" } + }, + "lint-staged": { + "src/**/*.{js,vue}": [ + "eslint --fix", + "git add" + ] } } diff --git a/src/App.vue b/src/App.vue index ec98c47..27845d3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,16 @@