This project is aimmed at launching a Mini Program project with more official rules and standard.
Tips: This is NOT a mini program framework or the best practices to mini program development but just a tool helps to develop mini program project more easier and quickly.
Node Builder support
SCSS compiler
Tailwind Support (part of)
Prettier
Eslint
Gulp
Typescript Support [WIP]
Unit Test component [WIP]
Mini Program build uploader
Node
Yarn or NPM
- Clone the code
- Run
npm installoryarn installunder root directory - Create a new mini program project from the
Wechat Development Tool - Copy all generated files from
Wechat Development Toolto the foldersrc - Run
npm run dev - Open the
mp-target-folderfolder fromWechat Development Toolto preview the mini program screen - Edit your code from
src
If you have mutile mini account like dev account or prod account, you could specify you mini program config files to the file env.${YOUR-ENVIRONMENT}.json like env.dev.json or env.prod.jsonn
if you wish to switch the mini program account, change the scripts section from package.json and specify the name.
run npm run build-dev or npm run build-stg or npm run build-prod to build the final release files.
The final files for releasing are under folder mp-target-folder
Version: v2.0.0 (last updated at 2020-05-16) Version: v1.0.0 (last updated at 2019-02-11)
Liu Cheng liucheng@flyingant.me