官网
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LAPTOP-S9HJSOEB\昊天 8001cd7178 第一次上传 3 months ago
.vscode 第一次上传 3 months ago
docs 第一次上传 3 months ago
e2e 第一次上传 3 months ago
node_modules 第一次上传 3 months ago
public 第一次上传 3 months ago
src 第一次上传 3 months ago
.editorconfig 第一次上传 3 months ago
.gitattributes 第一次上传 3 months ago
.gitignore 第一次上传 3 months ago
.prettierrc.json 第一次上传 3 months ago
README.md 第一次上传 3 months ago
env.d.ts 第一次上传 3 months ago
eslint.config.ts 第一次上传 3 months ago
index.html 第一次上传 3 months ago
package.json 第一次上传 3 months ago
playwright.config.ts 第一次上传 3 months ago
tsconfig.app.json 第一次上传 3 months ago
tsconfig.json 第一次上传 3 months ago
tsconfig.node.json 第一次上传 3 months ago
tsconfig.vitest.json 第一次上传 3 months ago
vite.config.ts 第一次上传 3 months ago
vitest.config.ts 第一次上传 3 months ago

README.md

home

This template should help get you started developing with Vue 3 in Vite.

VS Code + Vue (Official) (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
npm run test:e2e
# Runs the tests only on Chromium
npm run test:e2e -- --project=chromium
# Runs the tests of a specific file
npm run test:e2e -- tests/example.spec.ts
# Runs the tests in debug mode
npm run test:e2e -- --debug

Lint with ESLint

npm run lint