This UI starts from Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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 TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disables the built-in TypeScript extension.
- Runs
Extensions: Show Built-in Extensions
from VSCode's command palette. - Finds
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
.
- Runs
- Reloads the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
pnpm install
pnpm dev
-
If you can't a backend server. You can running project with mock mode
This will open a mock server service and api document.
The mock server will in http://localhost:10088
The mock api document will in http://localhost:10090
pnpm dev:mock & pnpm run mock
pnpm build
Lint with ESLint
pnpm lint
You can run this command to automatically generate the corresponding protocol before commit.
pnpm run gen:license