@tianyr/yotti
v0.1.3
Published
A CLI scaffolding tool for frontend best-practice projects
Downloads
211
Readme
yotti
前端最佳实践脚手架,快速初始化不同业务场景的工程化项目。
使用
npx @tianyr/yotti@latest my-app或直接运行,进入交互式选择:
npx @tianyr/yotti@latest内置模板
| 模板 | 技术栈 | |------|--------| | Nuxt 官网项目 | Nuxt4 + TypeScript + Naive UI | | Vue 中后台 | Vue3 + TypeScript + Element Plus | | Vue H5 | Vue3 + TypeScript + Element Plus | | React 中后台 | React + TypeScript + Ant Design |
本地开发
# 安装依赖
pnpm install
# 构建
pnpm build
# 本地调试
node dist/index.js my-test-app添加新模板
编辑 src/templates.ts,在数组中追加一项:
{
label: '小程序 - Vue',
value: 'miniapp-vue',
repo: 'ER-Tiylor/template-miniapp-vue',
hint: 'Vue3 + TypeScript + uni-app',
}然后重新 pnpm build 并发版即可。
发布
pnpm build
npm publish --access=public --registry=https://registry.npmjs.org/发布后用户即可通过 npx @tianyr/yotti@latest 使用。
