Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bolasblack/ts-pure-miniapp-starter
https://github.com/bolasblack/ts-pure-miniapp-starter
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bolasblack/ts-pure-miniapp-starter
- Owner: bolasblack
- Created: 2018-12-02T14:50:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T14:54:30.000Z (about 6 years ago)
- Last Synced: 2024-11-10T03:36:31.145Z (2 months ago)
- Language: TypeScript
- Size: 279 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-pure-miniapp-starter
用 TypeScript 来写纯的小程序代码
## 构建代码
```
yarn webpack # 构建代码
yarn webpack --watch # 监听文件变化,自动重新构建
```## 工作流程
* 开始工作
1. 执行构建代码的命令
2. 用微信开发者工具打开 `./dist`
* 添加小程序的组件等(参考 `vendors/mp_canvas_drawer`
1. 用 [git-subrepo](https://github.com/ingydotnet/git-subrepo) 之类的工具把组件项目克隆到 `vendors` 目录下
2. 添加软链接到 `src/components` 目录下