@aibai/create-myvue 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/cli.js +45 -765
- package/{create-my-vue.config.example.js → create-myvue.config.example.js} +2 -2
- package/package.json +2 -2
- package/templates/plugins/axios/files/README.md +361 -0
- package/templates/plugins/axios/files/axiosConfig.ts +27 -0
- package/templates/plugins/axios/files/axiosInstance.ts +74 -0
- package/templates/plugins/axios/files/errorHandler.ts +109 -0
- package/templates/plugins/axios/files/imageUtils.ts +62 -0
- package/templates/plugins/axios/files/index.ts +16 -0
- package/templates/plugins/unocss/files/main.js +1 -0
- package/templates/plugins/unocss/import.js +1 -0
- package/templates/plugins/unocss/plugin.js +1 -0
- package/templates/plugins/unocss/uno.config.ts +16 -0
- package/templates/plugins/unplugin-auto-import/import.js +1 -0
- package/templates/plugins/unplugin-auto-import/plugin.js +18 -0
- package/templates/plugins/unplugin-vue-components/import.js +1 -0
- package/templates/plugins/unplugin-vue-components/plugin.js +6 -0
- package/templates/plugins/vite-plugin-svg-icons/files/Icon.vue +27 -0
- package/templates/plugins/vite-plugin-svg-icons/files/main.js +1 -0
- package/templates/plugins/vite-plugin-svg-icons/import.js +1 -0
- package/templates/plugins/vite-plugin-svg-icons/plugin.js +6 -0
package/README.md
CHANGED
|
@@ -61,12 +61,12 @@ Options:
|
|
|
61
61
|
|
|
62
62
|
## 配置文件
|
|
63
63
|
|
|
64
|
-
你可以在当前目录下创建 `create-
|
|
64
|
+
你可以在当前目录下创建 `create-myvue.config.js` 文件来自定义默认选项。
|
|
65
65
|
|
|
66
66
|
### 配置示例
|
|
67
67
|
|
|
68
68
|
```javascript
|
|
69
|
-
// create-
|
|
69
|
+
// create-myvue.config.js
|
|
70
70
|
module.exports = {
|
|
71
71
|
// 项目名称(可选,也可以通过命令行参数指定)
|
|
72
72
|
// projectName: 'my-vue-project',
|
|
@@ -99,7 +99,7 @@ npx @aibai/create-myvue --typescript
|
|
|
99
99
|
|
|
100
100
|
### 1. 使用配置文件创建项目
|
|
101
101
|
|
|
102
|
-
1. 创建 `create-
|
|
102
|
+
1. 创建 `create-myvue.config.js` 文件:
|
|
103
103
|
```javascript
|
|
104
104
|
module.exports = {
|
|
105
105
|
typescript: true,
|