@huberyyang/create-todo-vue 1.6.0 → 1.6.1
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ npm create @huberyyang/todo-vue .foo --overwrite -t vue-ts --no-immediate --pack
|
|
|
54
54
|
- `-i, --immediate` 创建后立即安装依赖,装完会打印启动命令
|
|
55
55
|
- `--no-immediate` 创建后不安装依赖,只打印后续步骤(不加这两个 flag 时会询问)
|
|
56
56
|
- `--overwrite` 目标已存在时直接覆盖,不再询问:目录会被清空(`.git` 保留),同名文件会被删除
|
|
57
|
-
- `--package-name`
|
|
57
|
+
- `--package-name` 指定包名,同时写进 `package.json` 的 `name` 和 `index.html` 的 `<title>`;不传则取目录名,目录名不是合法包名时会询问
|
|
58
58
|
|
|
59
59
|
传入未声明的参数会直接报错退出,并列出拼错的那个。`--package-name` 的值不合法时同样直接报错,**不会**替你静默改成一个合法的。
|
|
60
60
|
|
|
@@ -92,7 +92,7 @@ npm create @huberyyang/todo-vue .foo --overwrite -t vue-ts --no-immediate --pack
|
|
|
92
92
|
- `custom-vitesse-lite` → `degit antfu-collective/vitesse-lite`(Vitesse Lite)
|
|
93
93
|
|
|
94
94
|
> 转交上游的模板由对方的脚手架直接生成,因此**不会**像内置模板那样把 `package.json` 的 `name`
|
|
95
|
-
> 和 `index.html` 的 `<title>`
|
|
95
|
+
> 和 `index.html` 的 `<title>` 改写成包名——需要的话生成后自己改一下。这几个还需要联网。
|
|
96
96
|
|
|
97
97
|
### 📜 许可证 (License)
|
|
98
98
|
|