feat(vscode): 增强开发调试配置支持
This commit is contained in:
33
package.json
33
package.json
@@ -8,41 +8,21 @@
|
||||
"node": "^20.19.0 || >=22.12.0"
|
||||
},
|
||||
"scripts": {
|
||||
"_all": "run-p build-only format type-check lint",
|
||||
"_all": "run-p build-only format:prettier type-check lint test:unit:DisableWatch",
|
||||
"dev": "vite --port 4730 --host --strictPort",
|
||||
"build": "run-p type-check \"build-only {@}\" --",
|
||||
"build-only": "vite build",
|
||||
"preview": "vite preview",
|
||||
"preview:wrangler": "run-s build-only wrangler:dev",
|
||||
"wrangler:dev": "wrangler dev",
|
||||
"lint": "run-s lint:*",
|
||||
"format": "prettier --write src/",
|
||||
"preview": "vite preview --port 4731 --host --strictPort",
|
||||
"wrangler:dev": "wrangler dev --port 4732",
|
||||
"format:prettier": "prettier --write src/",
|
||||
"type-check": "vue-tsc --build",
|
||||
"lint": "run-s lint:*",
|
||||
"lint:stylelint": "stylelint \"**/*.{css,less,scss,vue}\" --fix --ignore-path .gitignore",
|
||||
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
||||
"lint:eslint": "eslint . --fix",
|
||||
"test:unit": "vitest",
|
||||
"test:unit:DisableWatch": "vitest --run",
|
||||
"test:playwright": "playwright test",
|
||||
"test:playwright:headless": "HEADLESS=true playwright test",
|
||||
"test:playwright:ui": "playwright test --ui",
|
||||
"test:playwright:chromium": "playwright test --project=chromium --quiet",
|
||||
"_oxlint_cfg": "oxlint . --fix --ignore-path=.gitignore --print-config",
|
||||
"__oxlint_-D": "oxlint . --fix --deny=correctness",
|
||||
"-wrangler:pages:deploy:preview": "wrangler pages deploy dist --project-name=vue-ts-example-2025 --branch=preview",
|
||||
"-wrangler:pages:deploy:prod": "wrangler pages deploy dist --project-name=vue-ts-example-2025",
|
||||
"-deploy:preview": "run-s build-only wrangler:pages:deploy:preview",
|
||||
"-deploy:prod": "run-s build-only wrangler:pages:deploy:prod",
|
||||
"wrangler:deploy": "pnpm run build && wrangler deploy",
|
||||
"wrangler:versions:upload": "pnpm run build && wrangler versions upload",
|
||||
"cf-typegen": "wrangler types",
|
||||
"test:playwright:headless": "HEADLESS=true playwright test --quiet",
|
||||
"postinstall": "wrangler types",
|
||||
"_dep:dedupe": "pnpm dedupe",
|
||||
"_dep:update": "pnpm dlx taze major --interactive",
|
||||
"_sizecheck:Treemap": "pnpm dlx vite-bundle-visualizer -t treemap",
|
||||
"_sizecheck:Sunburst": "pnpm dlx vite-bundle-visualizer -t sunburst",
|
||||
"_sizecheck:Network": "pnpm dlx vite-bundle-visualizer -t network",
|
||||
"_knip": "pnpm dlx knip",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
@@ -108,7 +88,6 @@
|
||||
"happy-dom": "^20.0.1",
|
||||
"html-minifier-terser": "^7.2.0",
|
||||
"husky": "^9.1.7",
|
||||
"jiti": "^2.5.1",
|
||||
"jsdom": "^27.0.0",
|
||||
"lint-staged": "^16.1.6",
|
||||
"npm-run-all2": "^8.0.4",
|
||||
|
||||
Reference in New Issue
Block a user