-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 4.79 KB
/
Copy pathpackage.json
File metadata and controls
137 lines (137 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "anyfork-admin-web",
"version": "1.0.0",
"private": true,
"description": "基于 Vite + Vue + TypeScript 构建的企业级Vue管理后台前端通用项目,集成 Nuxt UI、Pinia、VueRouter、Tailwind CSS、Alova 等核心技术,并通过 ESLint、Prettier、stylelint 保障代码规范,结合 husky、lint-staged、commitlint、commitizen、cz-git、conventional-changelog 实现提交规范与自动化日志生成,符合企业级项目开发标准。",
"author": {
"name": "anyfork",
"email": "anyfork@gmail.com"
},
"type": "module",
"scripts": {
"build": "vue-tsc -b --noEmit && vite build",
"build:no-base": "vue-tsc --noEmit && cross-env VITE_BUILD_ENV=ACTIONS VITE_BASE_FLAG=0 vite build",
"build:no-lint": "vue-tsc --noEmit && cross-env VITE_BUILD_ENV=ACTIONS vite build",
"changelog": "conventional-changelog -p commitlint.config.js -i CHANGELOG.md -s",
"changelog:all": "conventional-changelog -p commitlint.config.js -i CHANGELOG.md -s -r 0",
"commit": "git add . && git cz",
"commit-msg": "echo pnpm exec commitlint --edit $1",
"deploy:cloudflare": "pnpm run build:no-base && wrangler deploy",
"dev": "vite --open",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:lint-staged": "lint-staged",
"lint:style:fix": "stylelint '**/*.{css,vue}' --fix",
"lint:stylelint": "stylelint '**/*.{css,vue}' --fix",
"pre-commit": "echo pnpm run lint:lint-staged > .husky/pre-commit",
"prepare": "husky",
"prettier": "prettier --write .",
"preview": "pnpm run build:no-base && wrangler dev",
"preview:local": "vite preview"
},
"lint-staged": {
"*.{js,ts,mjs,mts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{cjs,json,jsonc}": [
"prettier --write"
],
"*.vue": [
"eslint --fix",
"stylelint --fix --allow-empty-input",
"prettier --write"
],
"*.{html,htm}": [
"prettier --write"
],
"*.{scss,css,less}": [
"stylelint --fix --allow-empty-input",
"prettier --write"
],
"*.{md,mdx}": [
"prettier --write"
],
"*.{yaml,yml}": [
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-git"
}
},
"dependencies": {
"@nuxt/ui": "^4.5.1",
"@vue/shared": "^3.5.29",
"@vueuse/core": "^14.2.1",
"alova": "^3.5.1",
"tailwindcss": "^4.2.1",
"vue": "^3.5.29",
"vue-router": "^5.0.3"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.26.0",
"@commitlint/cli": "^20.4.3",
"@commitlint/config-conventional": "^20.4.3",
"@eslint/js": "^10.0.1",
"@types/node": "^24.11.0",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vitejs/plugin-vue": "^6.0.4",
"@vue/tsconfig": "^0.9.0",
"commitizen": "^4.3.1",
"conventional-changelog-cli": "^5.0.0",
"cross-env": "^10.1.0",
"cz-git": "^1.12.0",
"eslint": "^10.0.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-vue": "^10.8.0",
"globals": "^17.4.0",
"husky": "^9.1.7",
"jiti": "^2.6.1",
"lint-staged": "^16.3.2",
"postcss-html": "^1.8.1",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
"prettier-plugin-packagejson": "^3.0.0",
"rollup-plugin-visualizer": "^7.0.1",
"stylelint": "^17.4.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^7.6.1",
"stylelint-config-recommended-vue": "^1.6.1",
"stylelint-config-standard": "^40.0.0",
"stylelint-order": "^7.0.1",
"typescript": "~5.9.3",
"typescript-eslint": "^8.56.1",
"vite": "^8.0.0-beta.16",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-eslint2": "^5.0.5",
"vite-plugin-html": "^3.2.2",
"vite-plugin-vue-devtools": "^8.0.7",
"vue-eslint-parser": "^10.4.0",
"vue-tsc": "^3.2.5",
"wrangler": "^4.70.0"
},
"engines": {
"node": ">=24.9.0",
"pnpm": ">=10.28.0"
},
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"vue-router": ">=4.0.0"
}
},
"overrides": {
"vite": "^8.0.0-beta.16"
},
"ignoredBuiltDependencies": [
"esbuild",
"sharp",
"vue-demi",
"workerd"
]
}
}