0.3.15 • Published 5 months ago
create-vite-w-cli v0.3.15
下阶段计划
暂无
bug 修复
2025-02-12
tailwindcss
的版本更新到v4.0
2024-09-27
- 修改了
vue
的版本导致的pinia
的兼容问题 - (
es-lint
开启时)增加了husky
在npm i
的时候自动安装, 但是如果没有初始化git
会提示错误 - (
es-lint
开启时)增加了对文件的命名规则限制, 如果不需要请更改vite.vue.check.filename.js
和husky
的钩子内容.
2024-08-20
- 修改了环境变量没有配置到路由的问题
2024-08-13
- 修改
windows
环境下的打包问题
2024-08-01
- 修改一些版本控制
2024-04-01
- 修复
eslint
中,prettier
的错误
2024-03-08
- 删除
TypeScript Vue Plugin (Volar)
的工作区建议, 现在使用Vue -Official
2024-02-06
vite-plugin-svg-icons@2.0.1
去除, 因为关联的几个依赖已经废弃vite
更新到5.0.11
, 同时添加node20
到开发依赖vue
更新到3.4.15
- 添加
jsx
支持
2024-01-05
- 修复了文件拷贝的错误
- 修复了
@vueuse/motion
没有添加到package.json
的错误
- eslint 配置中,没选择
prettier
却错误添加相关配置的问题 - 2023-09-25 修复了 .vscode 中的错误引号, 生成的 request 文件中的拦截器错误
- 2023-11-06 修复了使用
cnpm
安装时,@element-plus/icons-vue
没有一起安装导致的错误
更新说明
2025-01-16
- 添加
@antfu/eslint-config
作为默认的eslint
配置
2024-12-20
- 添加
unplugin-vue-inspector
插件 - 添加
vite-plugins/check-filename-plugins
插件来检查文件 - 移除
vite.vue.check.filename.js
2024-02-18
- 添加 gzip 压缩
2024-01-19
1.添加代理
2024-01-09
- 集成
ckeditor
- 集成
codemirror
2024-01-05
- 集成
vite-plugin-svg-icons
- 集成
@vueuse/motion
- 集成
.env变量
- 集成
public/config
打包后可以快速修改接口配置 - 集成加密工具
- 集成
leaflet
地图
添加命令行参数 用于在 node 服务中直接使用命令行参数来快捷生成, (网页 -> node 服务 -> 调用它),可选配置有
export interface answersType { 'project-name': string 'w-template': 'vite-vue3' | 'vite-all' | 'vite-all-mock' 'w-ui': 'none' | 'element-plus' | 'tdesign' 'is-ts': boolean 'is-sass': boolean 'is-eslint': boolean 'is-prettier': boolean 'is-taillwind': boolean 'is-permission': boolean 'is-leaflet' : boolean } //默认 const answers: answersType = { 'project-name': 'my-project', 'w-template': 'vite-vue3', 'w-ui': 'none', 'is-ts': true, 'is-sass': true, 'is-eslint': true, 'is-prettier': false, 'is-taillwind': true, 'is-permission': false, 'is-leaflet' : false }
说明
用于生成
vite
+vue3
的基础模板可选配置有
typescript
,sass
,taillwind
,eslint
element-plus
,tdesign
axios
,mock
,pinia
,mitt
,vue-router
工具尚未经过完整测试
使用
npm create vite-w-cli
选择配置即可或者
npm i create-vite-w-cli
之后, 运行npx create-vite-w-cli
示例
测试版工具,版本号: 0.1.0
? 搞个啥项目名啊? test-create
? 搞个啥模板啊? 干干净净,想要什么自己装
? 搞个啥ui框架啊? tdesign(腾讯)
? 是否使用TypeScript? Yes
? 是否使用Sass? Yes
? 是否使用Tailwind? Yes
? 是否使用ESLint(changelog,commitizen 会一起添加)? Yes
? 是否使用Prettier? No
? 是否预置权限控制? No
✔ 完活!
现在可以运行 : cd test-create
然后安装依赖 : npm i
已选择eslint规则, 需同步安装配置husky:
首先: npx husky install
然后: npx husky add .husky/pre-commit "npx lint-staged"
注意,如果你换了环境也需要重新配置husky
最后运行项目 : npm run dev
常见问题
- 如果
npm create vite-w-cli
使用了旧的版本, 应该是npm
缓存导致 可以使用以下命令来清理:
或者:npm cache clean --force
npm config get cache # 查看缓存目录 # 之后删除`_npx`下的文件
0.3.15
5 months ago
0.3.14
5 months ago
0.3.13
6 months ago
0.3.12
7 months ago
0.3.11
8 months ago
0.3.10
11 months ago
0.3.9
11 months ago
0.3.8
12 months ago
0.3.7
1 year ago
0.3.6
1 year ago
0.3.5
1 year ago
0.3.4
1 year ago
0.3.3
1 year ago
0.3.2
1 year ago
0.3.1
1 year ago
0.3.0
1 year ago
0.2.9
1 year ago
0.2.8
1 year ago
0.2.7
1 year ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago