https://github.com/yuler/mini-motto
https://github.com/yuler/mini-motto
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuler/mini-motto
- Owner: yuler
- License: mit
- Created: 2024-06-12T10:45:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T09:44:46.000Z (about 2 years ago)
- Last Synced: 2025-04-06T12:13:21.650Z (about 1 year ago)
- Language: TypeScript
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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)
## Related
- [微信小程序框架](https://developers.weixin.qq.com/miniprogram/dev/framework)