geekai/new-ui/projects/vue-admin
2024-03-13 08:48:10 +08:00
..
.vscode fix conflicts 2024-03-12 18:03:24 +08:00
public fix conflicts 2024-03-12 18:03:24 +08:00
src Merge branch 'ui' of 172.28.1.6:yangjian/chatgpt-plus into ui 2024-03-13 08:48:10 +08:00
.env.development fix conflicts 2024-03-12 18:03:24 +08:00
.env.preview fix conflicts 2024-03-12 18:07:19 +08:00
.env.production fix conflicts 2024-03-12 18:07:19 +08:00
.eslintrc.cjs fix conflicts 2024-03-12 18:03:24 +08:00
.gitignore fix conflicts 2024-03-12 18:03:24 +08:00
.prettierrc.json fix conflicts 2024-03-12 18:03:24 +08:00
env.d.ts fix conflicts 2024-03-12 18:03:24 +08:00
index.html fix conflicts 2024-03-12 18:03:24 +08:00
package.json fix conflicts 2024-03-12 18:07:19 +08:00
README.md fix conflicts 2024-03-12 18:03:24 +08:00
tsconfig.app.json fix conflicts 2024-03-12 18:03:24 +08:00
tsconfig.json fix conflicts 2024-03-12 18:03:24 +08:00
tsconfig.node.json fix conflicts 2024-03-12 18:03:24 +08:00
vite.config.ts fix conflicts 2024-03-12 18:03:24 +08:00

vue-admin

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

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

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 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:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Lint with ESLint

pnpm lint