|
|--- src # oak weui source code
|
|--- docs # documentation website layout and code
|
|--- demo # oak weui demo weapp source code
|
|--- __build__ # oak build script
|
|--- package.json
Fork
and git clone
.
$ npm install
$ npm start
$ npm run docs:dev
$ npm run new -- --c {NewComponentName}
# Creat multiple components at once
$ npm run new -- --c {NewComponentName1,NewComponentName2,NewComponentName3}
$ npm run new -- --p {NewPage}
# Creat multiple demp pages at once
$ npm run new -- --p {NewPage1,NewPage2,NewPage3}
$ npm run build
Publish site to gh-pages
$ npm run docs
- 生成组件对应页面的小程序码并上传七牛
$ npm run qrcode pages/button/index //生成小程序码
$ npm run upload_static //上传静态文件目录
- 在组件 Markdown 中添加以下文档
<!--PreviewGifLink: https://static.yonghuivip.com/wechatapp/static/gif/button_1.gif --> // 录屏GIF
<!--PreviewQrCodeLink: https://static.yonghuivip.com/wechatapp/static/images/pages_button_index.png --> // 小程序码