使用all-contributors-cli生成贡献者名单

[图片上传失败...(image-52ca19-1568360711047)]

官方网址:https://allcontributors.org

English 中文
README.md README-zh-CN.md

一、从 NPM 安装

yarn add --dev all-contributors-cli 
# 或者
npm i -D all-contributors-cli

二、初始化项目

yarn all-contributors init
# 或者
npm run all-contributors init
# 或者直接执行bin
./node_modules/.bin/all-contributors init

三、添加贡献者

# 添加做出了 <contribution> 类型贡献的贡献者 <username>, 
all-contributors add <username> <contribution>

# 例如:
# all-contributors add jfmengels code,doc

# 生成表格
yarn all-contributors generate

注1:generate 前注意事项

使用 generate.all-contributorsrc 文件读取贡献者列表 contributors 并对指定的文件 files 更新贡献者表格。

请注意在这些文件中,下面的标签必须能够被 generate 指令找到,以生成或者更新贡献者表格:

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

♥ 在运行 yarn all-contributors generate 时,上面的代码会被自动注入贡献者 , 请删除第一个和最后一个标签之间的内容。

注2:Emoji 关键词 ✨ (和贡献种类)

Emoji图标/关键词 含义 说明
💬
question 回答了问题 Answering Questions in Issues, Stack Overflow, Gitter, Slack, etc.
🐛
bug 报告了漏洞 links to issues reported by the user on this project
📝
blog 博文 links to the blogpost
💼
business 商业开发 people who execute on the business end
💻
code 编码 links to commits by the user on this project
🖋
content 内容 e.g. website copy, blog posts are separate
📖
doc 文档 links to commits by the user on this project, Wiki, or other source of documentation
🎨
design 设计 links to the logo/iconography/visual design/etc.
💡
example 举例 links to the examples
📋
eventOrganizing 事件组织者 links to event page
💵
financial 赞助商 people or orgs who provide financial support, links to relevant page
🔍
fundingFinding 抽募资金者 people who help find financial support
🤔
ideas 出了点子,想了方案
🚇
infra 基础设施 Hosting, Build-Tools, etc. Links to source file (like travis.yml) in repo, if applicable
🚧
maintenance 维护 people who help in maintaining the repo, links to commits by the user on this project
📦
platform 打包 porting to support a new platform
🔌
plugin 插件/工具库 links to the repo home
📆
projectManagement 项目管理
👀
review 检查
🛡️
security 安全 identify and/or reduce security threats, GDPR, Privacy, etc
🔧
tool 工具 links to the repo home
🌍
translation 翻译 links to the translated content
⚠️
test 测试 links to commits by the user on this project
tutorial 教程 links to the tutorial
📢
talk 讨论 links to the slides/recording/repo/etc
📓
userTesting 用户测试 links to user test notes
📹
video 视频 links to the video

四、更新贡献者文档

考虑更新 .all-contributorsrc 或者 重复上面相同的步骤添加贡献者。

五、在 package.json 中选择性添加快捷指令

你可以在 package.jsonscripts 区域选择性添加快捷指令。

例如:

{
  "scripts": {
    "contributors:add": "all-contributors add",
    "contributors:generate": "all-contributors generate"
  }
}

运行如下指令

yarn contributors:add jfmengels doc

我的GitHub仓库 all-contributors-cli-test: https://github.com/Allenem/all-contributors-cli-test

官方仓库: https://github.com/all-contributors/all-contributors


贡献者 ✨

下面可能会凌乱,但这没将tag转换咱也没办法。



<table>
<tr>
<td align="center"><a href="https://github.com/Allenem"><img src="https://avatars1.githubusercontent.com/u/33366355?v=4" width="100px;" alt="蒲尧"/><br /><b>蒲尧</b></a><br /><a href="https://github.com/Allenem/all-contributors-cli-test/commits?author=Allenem" title="Code">💻</a> <a href="https://github.com/Allenem/all-contributors-cli-test/commits?author=Allenem" title="Documentation">📖</a> <a href="#translation-Allenem" title="Translation">🌍</a></td>
<td align="center"><a href="https://github.com/ionicbond-lzj"><img src="https://avatars0.githubusercontent.com/u/45113875?v=4" width="100px;" alt="ionicbond-lzj"/><br /><b>ionicbond-lzj</b></a><br /><a href="https://github.com/Allenem/all-contributors-cli-test/commits?author=ionicbond-lzj" title="Tests">⚠️</a></td>
</tr>
</table>

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,088评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,715评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,361评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,099评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 60,987评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,063评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,486评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,175评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,440评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,518评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,305评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,190评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,550评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,880评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,152评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,451评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,637评论 2 335

推荐阅读更多精彩内容