File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 14
14
- 提交规范: git cz commitizen
15
15
- 版本更改历史: changelog
16
16
- 文档工具: typedoc
17
- - 代码检查: eslint +eslint-typescript,格式化: prettier .提交之前检查与修复:lint-staged"
17
+ - 代码检查: eslint +eslint-typescript,格式化: prettier .提交之前检查与修复:lint-staged
18
18
- 测试用例: mocha ,ts-node
19
- - webpack 插件: style-resources-loader
19
+ - webpack 插件: style-resources-loader (全局 less)webpack-bundle-analyzer(包分析工具) splitChunks(代码分离)
20
20
21
21
#### 代码基础架构说明
22
22
23
23
```
24
24
|-- 根目录
25
- |-- @types 项目共用的 type
26
25
|-- dist 项目 build 之后的文件夹
27
26
|-- docs 文档生成的根目录位置
28
27
|-- public 项目静态资源,不经过 webpack,以及默认的模版,适合存放第三方压缩好的资源
29
28
|-- src 主要的开发目录
29
+ | |-- @types 项目共用的 type
30
30
| |-- App.vue 页面渲染根节点
31
31
| |-- main.ts 入口文件
32
32
| |-- shims-vue.d.ts vue 文件类型的 type
101
101
#### 网络请求
102
102
103
103
- [x] 基于 axios 封装脱离具体业务逻辑的网络请求,支持编写脱离浏览器环境的测试用例.(跟业务无关)
104
- - [ ] 基于具体业务逻辑再次封装网络请求 (跟业务相关,此项需要依据具体后台应用接口编写)
104
+ - [x ] 基于具体业务逻辑再次封装网络请求 (跟业务相关,此项需要依据具体后台应用接口编写)
105
105
106
106
#### 数据状态管理
107
107
@@ -184,6 +184,11 @@ npm run test-dev:api
184
184
npm run test:api
185
185
```
186
186
187
+ - 查看打包结果分析
188
+
189
+ ```
190
+ npm run analysis
191
+ ```
187
192
### 更多问题
188
193
189
194
如果有问题,请提 issue 说明 => [ 传送门] ( https://github.com/ibwei/vue3-base ) .
You can’t perform that action at this time.
0 commit comments