https://github.com/yuler/mini-starter
wechat mini program starter
https://github.com/yuler/mini-starter
Last synced: 4 months ago
JSON representation
wechat mini program starter
- Host: GitHub
- URL: https://github.com/yuler/mini-starter
- Owner: yuler
- License: mit
- Created: 2021-11-20T13:44:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-14T08:03:42.000Z (5 months ago)
- Last Synced: 2026-01-28T06:10:15.776Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 601 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeChat MiniProgram Starter
> This is a template for [WeChat MiniProgram](https://developers.weixin.qq.com/miniprogram/dev/framework/).
## Features
- 🚀 Enable `style: v2` & `weui: true` ([useExtendedLib](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#useExtendedLib)) in `app.json`
- 💪 Integration TypeScript
- 🎨 Integration UnoCSS
- 🛠️ Build System with [scripts](./scripts/)
- 📣 Wrap a event emitter power by [mitt](https://github.com/developit/mitt)
- 📦 Provide a [`enhancePage`](./src/enhance-page.ts) function to wrap the original [`Page`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html)
## Usage
```bash
gh repo create --template yuler/mini-starter
cp .env.example .env
```
- Change the `appid` in [project.config.json](./project.config.json)
- Download `private.${appid}.key` file from [Weixin Official Accounts Platform](https://mp.weixin.qq.com/wxamp/devprofile/get_profile)
## Scripts
- `ide:*` forward to [WeChat Devtools CLI](https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html)
- `build` compile the source code to the `dist` directory
- `dev` run with watch mode for development
- `upload` upload the code via [miniprogram-ci](https://www.npmjs.com/package/miniprogram-ci)
- `create:page` Quick create a page
- `create:component` Quick create a component
## Related
- [微信小程序框架](https://developers.weixin.qq.com/miniprogram/dev/framework)