|
1 | 1 | { |
2 | 2 | "name": "template-vue3", |
3 | | - "description": "A template of vue3", |
| 3 | + "type": "module", |
4 | 4 | "version": "0.0.0", |
| 5 | + "description": "A template of vue3", |
5 | 6 | "scripts": { |
6 | 7 | "dev": "vite", |
7 | | - "build": "vue-tsc --noEmit --skipLibCheck && vite build", |
8 | | - "only-build": "vite build", |
9 | | - "serve": "vite preview", |
10 | | - "commit": "git-cz" |
| 8 | + "build": "pnpm vue-tsc --noEmit && pnpm vite build", |
| 9 | + "preview": "pnpm vite preview", |
| 10 | + "lint": "eslint . --cache", |
| 11 | + "format": "prettier --write ." |
11 | 12 | }, |
12 | 13 | "dependencies": { |
13 | | - "ant-design-vue": "^2.1.6", |
14 | | - "axios": "^0.21.1", |
15 | | - "js-cookie": "^2.2.1", |
16 | | - "sass": "^1.34.0", |
17 | | - "vue": "3.0.11", |
18 | | - "vue-router": "^4.0.5", |
19 | | - "vuex": "^4.0.0" |
| 14 | + "@unocss/reset": "^0.58.5", |
| 15 | + "@vueuse/core": "^10.7.2", |
| 16 | + "ant-design-vue": "^4.0.0", |
| 17 | + "axios": "^1.6.7", |
| 18 | + "js-cookie": "^3.0.5", |
| 19 | + "naive-ui": "^2.40.1", |
| 20 | + "pinia": "^2.1.7", |
| 21 | + "sass": "^1.71.0", |
| 22 | + "vue": "^3.4.19", |
| 23 | + "vue-router": "^4.2.5" |
20 | 24 | }, |
21 | 25 | "devDependencies": { |
22 | | - "@commitlint/cli": "^8.2.0", |
23 | | - "@commitlint/config-conventional": "^8.2.0", |
24 | | - "@soerenmartius/vue3-clipboard": "^0.1.2", |
25 | | - "@types/js-cookie": "^2.2.6", |
26 | | - "@types/node": "^14.14.41", |
27 | | - "@typescript-eslint/eslint-plugin": "^4.19.0", |
28 | | - "@typescript-eslint/parser": "^4.19.0", |
29 | | - "@vitejs/plugin-legacy": "^1.3.1", |
30 | | - "@vitejs/plugin-vue": "^1.1.5", |
31 | | - "@vitejs/plugin-vue-jsx": "^1.1.2", |
32 | | - "@vue/compiler-sfc": "^3.0.11", |
33 | | - "@vue/eslint-config-standard": "^4.0.0", |
34 | | - "@vue/eslint-config-typescript": "^4.0.0", |
35 | | - "@vueuse/core": "^4.8.3", |
36 | | - "body-parser": "^1.19.0", |
37 | | - "commitizen": "^4.2.3", |
38 | | - "conventional-changelog-cli": "^2.1.1", |
39 | | - "cross-env": "^7.0.3", |
40 | | - "dotenv": "^8.2.0", |
41 | | - "eslint": "^7.22.0", |
42 | | - "eslint-config-airbnb-base": "^14.2.1", |
43 | | - "eslint-config-prettier": "^8.1.0", |
44 | | - "eslint-plugin-import": "^2.22.1", |
45 | | - "eslint-plugin-prettier": "^3.3.1", |
46 | | - "eslint-plugin-vue": "^7.8.0", |
47 | | - "lint-staged": "^10.5.4", |
48 | | - "stylelint": "^13.12.0", |
49 | | - "stylelint-config-standard": "^21.0.0", |
50 | | - "stylelint-order": "^4.1.0", |
51 | | - "typescript": "^4.1.3", |
52 | | - "vite": "^2.1.0", |
53 | | - "vue-eslint-parser": "^7.6.0", |
54 | | - "vue-tsc": "^0.0.8", |
55 | | - "yorkie": "^2.0.0" |
| 26 | + "@antfu/eslint-config": "^2.8.0", |
| 27 | + "@commitlint/cli": "^18.6.1", |
| 28 | + "@commitlint/config-conventional": "^18.6.2", |
| 29 | + "@iconify-json/carbon": "^1.2.4", |
| 30 | + "@iconify-json/devicon": "^1.2.5", |
| 31 | + "@iconify-json/file-icons": "^1.2.0", |
| 32 | + "@iconify-json/logos": "^1.2.3", |
| 33 | + "@iconify-json/ri": "^1.2.3", |
| 34 | + "@iconify-json/simple-icons": "^1.2.11", |
| 35 | + "@iconify/utils": "^2.1.33", |
| 36 | + "@types/js-cookie": "^3.0.6", |
| 37 | + "@types/node": "^20.11.24", |
| 38 | + "@typescript-eslint/eslint-plugin": "^7.0.2", |
| 39 | + "@typescript-eslint/parser": "^7.0.2", |
| 40 | + "@unocss/preset-attributify": "^0.58.9", |
| 41 | + "@unocss/preset-icons": "^0.58.9", |
| 42 | + "@unocss/preset-uno": "^0.58.9", |
| 43 | + "@vitejs/plugin-vue": "^5.0.4", |
| 44 | + "@vitejs/plugin-vue-jsx": "^3.1.0", |
| 45 | + "@vue/eslint-config-typescript": "^12.0.0", |
| 46 | + "eslint": "^8.57.0", |
| 47 | + "eslint-config-prettier": "^9.1.0", |
| 48 | + "eslint-plugin-vue": "^9.21.1", |
| 49 | + "lint-staged": "^15.2.2", |
| 50 | + "prettier": "^3.2.5", |
| 51 | + "typescript": "^5.3.3", |
| 52 | + "unocss": "^0.58.9", |
| 53 | + "vite": "^5.1.3", |
| 54 | + "vue-tsc": "^1.8.27" |
56 | 55 | }, |
57 | 56 | "gitHooks": { |
58 | 57 | "pre-commit": "lint-staged", |
59 | 58 | "commit-msg": "commitlint -e" |
60 | 59 | }, |
61 | | - "config": { |
62 | | - "commitizen": { |
63 | | - "path": "cz-conventional-changelog" |
64 | | - } |
65 | | - }, |
66 | 60 | "lint-staged": { |
67 | | - "*.{js,vue,ts}": [ |
68 | | - "eslint --ext .ts,.vue,.tsx src", |
69 | | - "git add" |
| 61 | + "*.{js,vue,ts,tsx}": [ |
| 62 | + "eslint --fix", |
| 63 | + "prettier --write" |
70 | 64 | ] |
71 | 65 | } |
72 | 66 | } |
0 commit comments