Skip to content

Commit e77cf73

Browse files
committed
feat(package.json): ✨ 集成@cloudflare/vite-plugin插件
1 parent 0fa6a34 commit e77cf73

5 files changed

Lines changed: 571 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ auto-import.d.ts
3232
components.d.ts
3333
typed-router.d.ts
3434
.eslintrc-auto-import.json
35+
36+
37+
# wrangler files
38+
.wrangler

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"changelog:all": "conventional-changelog -p commitlint.config.js -i CHANGELOG.md -s -r 0",
1717
"commit": "git add . && git cz",
1818
"commit-msg": "echo pnpm exec commitlint --edit $1 > .husky/commit-msg",
19+
"deploy:cloudflare": "pnpm run build:no-base && wrangler deploy",
1920
"dev": "vite --open",
2021
"lint": "eslint .",
2122
"lint:fix": "eslint . --fix",
@@ -25,7 +26,8 @@
2526
"pre-commit": "echo pnpm run lint:lint-staged > .husky/pre-commit",
2627
"prepare": "husky",
2728
"prettier": "prettier --write .",
28-
"preview": "vite preview"
29+
"preview": "pnpm run build:no-base && wrangler dev",
30+
"preview:local": "vite preview"
2931
},
3032
"lint-staged": {
3133
"*.{js,ts,mjs,mts,tsx}": [
@@ -67,6 +69,7 @@
6769
"vue-router": "^5.0.3"
6870
},
6971
"devDependencies": {
72+
"@cloudflare/vite-plugin": "^1.25.6",
7073
"@commitlint/cli": "^20.4.2",
7174
"@commitlint/config-conventional": "^20.4.2",
7275
"@eslint/js": "^10.0.1",
@@ -106,7 +109,8 @@
106109
"vite-plugin-html": "^3.2.2",
107110
"vite-plugin-vue-devtools": "^8.0.6",
108111
"vue-eslint-parser": "^10.4.0",
109-
"vue-tsc": "^3.1.5"
112+
"vue-tsc": "^3.1.5",
113+
"wrangler": "^4.69.0"
110114
},
111115
"engines": {
112116
"node": ">=24.9.0",

0 commit comments

Comments
 (0)