create-snail-uni
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

🌾 snail-uni 🌾

更懂你的uni-app框架

🌴 介绍

snail-uni - 专为开发者打造的 UniApp 框架模板。 基于 UniApp + Vue3 + TypeScript + Vite + Wot Design Uni 的高效框架模板。它内置了 Snail-Uni 脚手架工具,帮助您快速创建 TypeScriptJavaScript 版本项目。Snail-Uni 配备了丰富的开箱即用配置,让您从一开始就拥有高效的开发体验。

🚀 使用

一.命令导向方式

# npm
npm create snail-uni
# pnpm
pnpm create snail-uni 
# yarn
yarn create snail-uni
# bun
bun create snail-uni

二.命令行选项

命令行支持两种方式创建:

方式一

npm create snail-uni <project-name> --t <template-name 模板名称> --ui <ui库(Wot-Design/Uv-ui/Uview-plus/TuniaoUI> --lint <yes/no)>

# npm
npm create snail-uni my-snail-app --t uni-ts --ui Uv-ui  --lint yes
# pnpm
pnpm create snail-uni my-snail-app --t uni-ts --ui Uv-ui  --lint yes
# yarn
yarn create snail-uni my-snail-app --t uni-ts --ui Uv-ui  --lint yes
# bun
bun create snail-uni my-snail-app --t uni-ts --ui Uv-ui  --lint yes
  • 支持以下模板:uni-tsuni-tabbar-tsuni-jsuni-tabbar-js
  • 支持以下ui库:Wot-DesignUv-uiUview-plusTuniaoUI

方式二

npm create snail-uni <project-name> <语言类型(js/ts)> <是否使用(tabbar/no)> <是否使用代码检查(eslint/no)> <ui库(Wot-Design/Uv-ui/Uview-plus/TuniaoUI)>

# npm
# 创建 ts、tabbar、eslint版本 
npm create snail-uni snail-uni-app ts tabbar eslint
# pnpm
pnpm create snail-uni snail-uni-app ts tabbar eslint
# yarn
yarn create snail-uni snail-uni-app ts tabbar eslint
# bun
bun create snail-uni snail-uni-app ts tabbar eslint

执行完之后,将生成一个新的项目

Package Sidebar

Install

npm i create-snail-uni

Weekly Downloads

175

Version

1.0.3

License

MIT

Unpacked Size

113 kB

Total Files

54

Last publish

Collaborators

  • hu-snail01