Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimplesy/uniapp-unocss-starter
uniapp + typescript + unocss starter
https://github.com/dimplesy/uniapp-unocss-starter
uniapp unocss vue3-typescript
Last synced: 6 days ago
JSON representation
uniapp + typescript + unocss starter
- Host: GitHub
- URL: https://github.com/dimplesy/uniapp-unocss-starter
- Owner: DimplesY
- License: mit
- Created: 2022-03-12T09:26:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T06:22:55.000Z (3 months ago)
- Last Synced: 2024-08-23T07:36:02.266Z (3 months ago)
- Topics: uniapp, unocss, vue3-typescript
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 29
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 🚀 uniapp-unocss-starter
一个 uniapp 精简快速开始模版,使用 uniapp + vue3 + typescript + unocss
[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
## 特性
- 整合 [unocss](https://github.com/unocss/unocss) 作为 css 框架
- 整合 [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import) 自动导入 API
- 整合 [unocss-preset-weapp](https://github.com/MellowCo/unocss-preset-weapp) 做类名转换
- 使用 [@antfu/eslint-config](https://github.com/antfu/eslint-config) 作为基础配置,用户可根据需求自行修改
- 使用 simple-git-hooks + lint-staged 拦截 git 提交并检查代码
## 在本地运行
Clone 这个 project
```bash
git clone [email protected]:DimplesY/uniapp-unocss-starter.git# or 使用项目作为模版
npx degit [email protected]:DimplesY/uniapp-unocss-starter.git my-project
```前往项目目录
```bash
cd my-project
```安装依赖
```bash
pnpm install
```启动项目
- 微信小程序,可以使用下面命令启动,其他平台可查看 package.json 中的 scripts
```bash
pnpm dev:mp-weixin
```