1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

chore: 构建项目结构

This commit is contained in:
2025-02-17 17:36:11 +08:00
parent eefdb5cfce
commit ab19292740
36 changed files with 60 additions and 36 deletions

View File

@@ -1,45 +1,24 @@
# Business Center Vite
This template should help get you started developing with Vue 3 in Vite.
> 【注意】当前项目尚处于早期开发阶段,不建议生产使用。
## Recommended IDE Setup
business-center-vite 是一个开源免费,含前后端的后台管理模板
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (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](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
## Customize configuration
See [Vite Configuration Reference](https://vite.dev/config/).
## Project Setup
```sh
npm install
```
business-center-vite (主仓库 business-center-vite)
├─ frontend ---------- 项目前端源码 (定期同步代码至子仓库: business-center-frontend)
│ ├─ ...
│ └─ README.md ----- 前端自述文件
├─ backend ----------- 项目后端源码 (定期同步代码至子仓库: business-center-backend)
│ ├─ ...
│ └─ README.md ----- 后端自述文件
└─ README.md --------- 自述文件
```
### Compile and Hot-Reload for Development
## 贡献
```sh
npm run dev
```
### Type-Check, Compile and Minify for Production
```sh
npm run build
```
### Run Unit Tests with [Vitest](https://vitest.dev/)
```sh
npm run test:unit
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```
请在主仓库进行 issue 或 pr 提交,子仓库仅作同步。