@aibai/create-myvue 0.0.1 → 0.0.3
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 +11 -11
- package/bin/cli.js +46 -766
- package/create-my-vue.config.example.js +1 -1
- package/package.json +1 -1
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# create-
|
|
1
|
+
# @aibai/create-myvue
|
|
2
2
|
|
|
3
3
|
一个对 `pnpm create vue@latest` 命令的二次封装,支持通过配置文件自定义默认选项。
|
|
4
4
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# 全局安装
|
|
9
|
-
npm install -g create-
|
|
9
|
+
npm install -g @aibai/create-myvue
|
|
10
10
|
|
|
11
11
|
# 或者使用 npx
|
|
12
|
-
npx create-
|
|
12
|
+
npx @aibai/create-myvue
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## 使用方法
|
|
@@ -18,19 +18,19 @@ npx create-my-vue
|
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# 使用默认配置创建项目
|
|
21
|
-
create-
|
|
21
|
+
npx @aibai/create-myvue
|
|
22
22
|
|
|
23
23
|
# 指定项目名称
|
|
24
|
-
create-
|
|
24
|
+
npx @aibai/create-myvue my-vue-project
|
|
25
25
|
|
|
26
26
|
# 使用默认选项
|
|
27
|
-
create-
|
|
27
|
+
npx @aibai/create-myvue --default
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### 命令行选项
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
Usage: create-
|
|
33
|
+
Usage: npx @aibai/create-myvue [options] [projectName]
|
|
34
34
|
|
|
35
35
|
A wrapper around pnpm create vue@latest with custom defaults
|
|
36
36
|
|
|
@@ -92,7 +92,7 @@ module.exports = {
|
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
94
|
# 即使配置文件中 typescript 为 false,这里也会创建 TypeScript 项目
|
|
95
|
-
create-
|
|
95
|
+
npx @aibai/create-myvue --typescript
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
## 示例
|
|
@@ -112,19 +112,19 @@ create-my-vue --typescript
|
|
|
112
112
|
|
|
113
113
|
2. 运行命令:
|
|
114
114
|
```bash
|
|
115
|
-
create-
|
|
115
|
+
npx @aibai/create-myvue my-vue-app
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
### 2. 直接使用命令行选项
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
create-
|
|
121
|
+
npx @aibai/create-myvue my-vue-app --typescript --router --pinia --eslint --prettier
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
### 3. 使用默认选项
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
|
-
create-
|
|
127
|
+
npx @aibai/create-myvue my-vue-app --default
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
## 许可证
|