@huberyyang/create-todo-vue 1.11.0 → 1.12.0
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 +5 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
<a href="https://opensource.org/license/MIT"><img src="https://img.shields.io/npm/l/@huberyyang/create-todo-vue?style=flat-square" alt="license"/></a>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
+
<div align="center">
|
|
11
|
+
<img src="https://raw.githubusercontent.com/HuberyYang-Space/create-todo-vue/main/.github/assets/demo.gif" alt="终端演示:交互式创建一个 vue-ts 项目" width="860">
|
|
12
|
+
</div>
|
|
13
|
+
|
|
10
14
|
### 💡 说明 (Features)
|
|
11
15
|
|
|
12
16
|
使用自定义模板快速创建最新的vue项目
|
|
@@ -87,7 +91,7 @@ npm create @huberyyang/todo-vue .foo --overwrite -t vue-ts --no-immediate --pack
|
|
|
87
91
|
|
|
88
92
|
- `vanilla` / `vanilla-ts`
|
|
89
93
|
- `vue` / `vue-ts`
|
|
90
|
-
- `vue-dev`:比 vue-ts 重一档,预装 unocss、vueuse、vue-router 自动路由、element-plus 图标、自动导入,以及 eslint + husky + commitlint
|
|
94
|
+
- `vue-dev`:比 vue-ts 重一档,预装 unocss、vueuse、vue-router 自动路由、element-plus 图标、自动导入,以及 eslint + husky + commitlint 一整套工具链。上游是 [`Hub-yang/my-vue-dev-template`](https://github.com/Hub-yang/my-vue-dev-template)
|
|
91
95
|
- `lit` / `lit-ts`
|
|
92
96
|
|
|
93
97
|
转交上游脚手架的模板(同样 `-t` 可直接指定,交互式在 Vue 下也能选到):
|
package/dist/index.js
CHANGED
|
@@ -789,7 +789,7 @@ $ $@@
|
|
|
789
789
|
@
|
|
790
790
|
@@`;function Kn(e,t=80){let n=e=>e.variants?.length?e.variants.map(e=>e.name):[e.name],r=Math.max(0,...e.flatMap(n).map(e=>e.length))+2,i=Math.max(1,Math.floor(t/r));return e.map(e=>{let t=n(e),a=[];for(let e=0;e<t.length;e+=i)a.push(t.slice(e,e+i).map(e=>e.padEnd(r)).join(``).trimEnd());return a.map(t=>e.color(t)).join(`
|
|
791
791
|
`)}).join(`
|
|
792
|
-
`)}const{green:qn,yellow:Jn,blue:Yn,cyan:Xn,redBright:Zn,greenBright:Qn}=Pn.default,$n=`vue-project`,er=`https://github.com/HuberyYang-Space/create-todo-vue`,tr={boolean:[`help`,`version`,`overwrite`,`immediate`],alias:{h:`help`,v:`version`,t:`template`,i:`immediate`},string:[`template`,`package-name`]},nr=[{name:`vanilla`,display:`Vanilla`,color:Jn,variants:[{name:`vanilla-ts`,display:`TypeScript`,color:Yn},{name:`vanilla`,display:`JavaScript`,color:Jn}]},{name:`vue`,display:`Vue`,color:qn,variants:[{name:`vue-ts`,display:`TypeScript`,color:Yn},{name:`vue`,display:`JavaScript`,color:Jn},{name:`vue-dev`,display:`
|
|
792
|
+
`)}const{green:qn,yellow:Jn,blue:Yn,cyan:Xn,redBright:Zn,greenBright:Qn}=Pn.default,$n=`vue-project`,er=`https://github.com/HuberyYang-Space/create-todo-vue`,tr={boolean:[`help`,`version`,`overwrite`,`immediate`],alias:{h:`help`,v:`version`,t:`template`,i:`immediate`},string:[`template`,`package-name`]},nr=[{name:`vanilla`,display:`Vanilla`,color:Jn,variants:[{name:`vanilla-ts`,display:`TypeScript`,color:Yn},{name:`vanilla`,display:`JavaScript`,color:Jn}]},{name:`vue`,display:`Vue`,color:qn,variants:[{name:`vue-ts`,display:`TypeScript`,color:Yn},{name:`vue`,display:`JavaScript`,color:Jn},{name:`vue-dev`,display:`Vue Dev Template`,link:`https://github.com/Hub-yang/my-vue-dev-template`,color:Xn},{name:`custom-create-vue`,display:`Official Vue Starter ↗`,color:qn,customCommand:`npm create vue@latest TARGET_DIR`},{name:`custom-nuxt`,display:`Nuxt ↗`,link:`https://nuxt.com`,color:Qn,customCommand:`npm exec nuxi init TARGET_DIR`},{name:`custom-vike-vue`,display:`Vike ↗`,link:`https://vike.dev`,color:Qn,customCommand:`npm create -- vike@latest --vue TARGET_DIR`}]},{name:`lit`,display:`Lit`,color:Zn,variants:[{name:`lit-ts`,display:`TypeScript`,color:Yn},{name:`lit`,display:`JavaScript`,color:Jn}]}],rr=`\
|
|
793
793
|
用法: @huberyyang/create-todo-vue [参数]... [目录]
|
|
794
794
|
|
|
795
795
|
快速创建vue模板
|