npm install -g nrm
nrm use taobao
pnpm install
所有命令使用 pnpm run
执行
dev
: 启动开发build
: 生产构建preview
: 本地构建完成预览type:check
: 类型检查lint
: eslint修复代码format
: prettier代码chrome
: 打开无跨域限制的浏览器api
: swagger生成请求代码,在src/api
下进行配置
- 使用
vue-better-props
书写vue组件,只允许使用tsx
组件 - 使用
tailwindcss
书写样式,拒绝出现多余的css
文件 - svg图标都在
icons
文件夹下 - 配置请在
conf
文件中添加
- 使用小写加
-
作为文件命名,比如文件夹search-form
尽量避免文件及文件夹出现大写及汉字情况 - js命名采用小驼峰
searchForm
, 类采用大驼峰SearchForm
- 文件使用后缀标识功能
home.view.tsx
表示此文件作为页面,home.service.ts
作为服务等等