Skip to content

watermelon-pan/taro-user-cases

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taro 案例

使用说明:

编辑根目录的 index.js 文件,修改第一行 userCases 变量,找到对应平台键值,往数组里添加对象:

name: 应用名
url: 二维码图片地址

修改完毕提交会提交 PR。当本仓库有 push 事件发生时会自动更新图片

如何提交案例

方式一,提交PR

如何给这个仓库提交 PR

  1. Fork 本仓库到自己的远程仓库

  1. clone 自己的仓库(https://github.com/「 你的github用户名 」/taro-user-cases)到本地电脑
git clone https://github.com/「 你的github用户名 」/taro-user-cases.git
  1. 与源代码的github仓库(https://github.com/NervJS/taro-user-cases.git)建立新的连接
git remote add upstream https://github.com/NervJS/taro-user-cases.git
  1. 查看是否成功建立连接
git remote -v
  1. 创建本地分支(这里叫taroCase, 随你叫啥)
git checkout -b taroCase
  1. 修改「 taro-user-cases/index.js 」文件里的代码,添加你的案例内容, 将当前分支推送到自己的远程仓库
git add  .
git commit -m "feat: 添加案例XXX"
git push origin taroCase
  1. 提交PR

注意事项:

每次 PR 之前,首先与远程仓库代码同步,刚才上面的远程仓库链接就是为了做远程代码同步

git fetch upstream
git rebase upstream/master
git push origin master

方式二,提交到 Issues

提交到 Issues 中,注明:

  • 应用名称
  • 属于哪一端和二维码或小程序码

About

使用 Taro 开发的案例

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 55.8%
  • JavaScript 42.0%
  • CSS 2.2%