chore: 构建项目结构
This commit is contained in:
51
README.md
51
README.md
@@ -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 提交,子仓库仅作同步。
|
||||
|
0
.gitignore → frontend/.gitignore
vendored
0
.gitignore → frontend/.gitignore
vendored
45
frontend/README.md
Normal file
45
frontend/README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Business Center Vite
|
||||
|
||||
This template should help get you started developing with Vue 3 in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
[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
|
||||
```
|
||||
|
||||
### 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
|
||||
```
|
0
env.d.ts → frontend/env.d.ts
vendored
0
env.d.ts → frontend/env.d.ts
vendored
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 276 B |
Reference in New Issue
Block a user