Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vite-react-ts-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
申中慧
vite-react-ts-admin
Commits
6dcd80cd
Commit
6dcd80cd
authored
Sep 11, 2023
by
申中慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改readme文件
parent
e34d51e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4881 deletions
+31
-4881
.gitignore
.gitignore
+1
-0
README.md
README.md
+30
-43
stats.html
stats.html
+0
-4838
No files found.
.gitignore
View file @
6dcd80cd
...
...
@@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
stats.html
README.md
View file @
6dcd80cd
...
...
@@ -27,35 +27,25 @@
| ant-design 4.X |
<https://ant.design/index-cn>
| ui 组件 |
| @ant-design/pro-layout 6.26.6 |
<https://procomponents.ant.design/components/layout/>
| 中后台高阶组件 |
| zustand |
<https://github.com/pmndrs/zustand>
| 轻量级状态管理 |
| typescript | - | 代码类型规范 |
| axios | - | 数据请求 |
| prettier | - | 代码美化,格式化 |
| eslint | - | 代码规范 |
| stylelint | - | css 代码规范 |
| husky | - | git commit 检验 |
| lint-staged | - | git commit 检验 |
## 开发构建
##
# 安装依赖
##
安装及使用
```
bash
# 安装依赖
pnpm
install
```
### 开发
# 启动
pnpm start
```
bash
pnpm run start
```
# 构建
pnpm build
## 构建
```
bash
pnpm run build
# 预览build产物
pnpm preview
```
##
结构目录
##
目录结构
```
├── README.md
...
...
@@ -65,18 +55,17 @@ pnpm run build
│ └── user.ts
├── package.json
├── pnpm-lock.yaml
├── public
// 公共
│ ├── CNAME
│ ├── config
│ ├── cpas-business
//
业务组件
│ ├── cpas-ui
│ ├── favicon.ico
│ ├── icons
├── public
# 静态资源
│ ├── CNAME
│ ├── config
# 配置文件
│ ├── cpas-business
#
业务组件
│ ├── cpas-ui
# 业务UI
│ ├── favicon.ico
│ ├── icons
│ ├── logo.png
│ ├── logo1.png
│ ├── modules
│ ├── theme
│ └── vite.svg
│ ├── theme # 主题
├── src
│ ├── 404.tsx
│ ├── App.tsx
...
...
@@ -85,27 +74,25 @@ pnpm run build
│ ├── assets
│ ├── components
│ ├── config
│ ├── global-copy.tsx
│ ├── i18n // 国际化
│ ├── initial.tsx // 运行时配置,获取initState中的各种配置
│ ├── layout // 布局
│ ├── i18n # 国际化配置
│ ├── initial.tsx # 运行时组件获取initState中的各种配置
│ ├── layout # 布局组件
│ ├── lib
│ ├── main.tsx
│ ├── models
│ ├── pages
│ ├── router // 路由配置
│ ├── server
│ ├── services
│ ├── store // 状态管理
│ ├── main.tsx # 入口文件
│ ├── models
│ ├── pages # 页面
│ ├── router # 路由配置
│ ├── services # 接口请求
│ ├── store # 状态管理
│ ├── types
│ ├── typing.ts
│ ├── typings.d.ts
│ ├── umi
// 封装了umi的一些方法,方便
迁移
│ ├── utils
│ └── vite-env.d.ts
│ ├── umi
# 封装umi目录,方便旧业务
迁移
│ ├── utils
# 工具
│ └── vite-env.d.ts
# vite全局ts声明
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
// vite相关
配置
└── vite.config.ts
# vite开发生产
配置
```
## 功能列表
...
...
stats.html
deleted
100644 → 0
View file @
e34d51e3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment