vue3-typescript
2024年04月29日
::: tip 前言 仓库 :::
介绍
模板特色:
- 基于
Webpack
搭建 - 基于
Vue 3.0
- 基于
TypeScript
- 提供两种
Axios
工业级封装方案 - 提供了
Esling+Prettier
结合的工业级代码规范
实践
一、 构建项目
1. yarn init -y 初始化项目
2. 根据以下目录结构,构建目录
:::details 点击查看目录
├ ─config
| |-utils
| |- env.ts
│ ├─webpack.config.base.js
│ ├─webpack.config.dev.js
│ ├─webpack.config.prod.js
├─node_modules
├─public
| |-index.html
└─src
| ├─api
| ├─assets
| ├─components
| ├─router
| ├─store
| ├─style
| ├─pages
| ├─utils
| |-App.vue
| |-index.ts
| |-shims-api.d.ts
| |-shims-suffix.d.ts
|-.babelrc
|-.editorconfig
|-.env.dev
|-.env.prod
|-.eslintignore
|-.eslintrc
|-.gitigore
|-package.json
|-tsconfig.json
:::