aralejs/aralejs.github.io

生成组件维护人页面

Closed this issue · 10 comments

这个页面的功能是了解每个组件的维护人是谁?分为主要维护人及其他维护人。

简单点就用 author 字段,第一个是主要维护人

"author": [
  {
    "name": "",
    "email": "",
    "url": ""
  }
]

来自 https://npmjs.org/doc/json.html

要做的事

  • server 增加 maintainers 字段
  • 每个组件应该有维护人信息 #263
  • 单页面显示所有组件的信息
  • spm info 返回维护人信息

不要用 author,用

"maintainers":[ {
   "name": "Bill Bloggs",
   "email": "billblogs@bblogmedia.com",
  " web": "http://www.bblogmedia.com",
}]

maintainers 中,第一个是当前维护人,其他是可维护人。

曾经贡献过代码或文档,但目前已无维护职责的人员,放在 contributors 中:

"contributors":[ {
   "name": "Bill Bloggs",
   "email": "billblogs@bblogmedia.com",
  " web": "http://www.bblogmedia.com",
}]

详见 Packages/1.0 规范:

http://wiki.commonjs.org/wiki/Packages/1.0

可以不寫 object 的,寫 username <email address> 也可以的。

都可以,就是写起来麻烦点,要解析

contributors 人肉填的话很麻烦,如果需要就自动从 commit 信息生成一个文件好了

contributors 可以爬出来,比如 seajs 的:

https://github.com/seajs/seajs/contributors

或许有 api 能拿到列表。

On Wed, Jun 5, 2013 at 12:25 PM, Haoliang Gao notifications@github.comwrote:

contributors 人肉填的话很麻烦,如果需要就自动从 commit 信息生成一个文件好了


Reply to this email directly or view it on GitHubhttps://github.com//issues/270#issuecomment-18954929
.

王保平 / 玉伯(射雕)
送人玫瑰手有余香

直接用这个

git shortlog -s -n

帅气

On Wed, Jun 5, 2013 at 3:33 PM, Haoliang Gao notifications@github.comwrote:

http://aralejs.org/docs/maintainers.html


Reply to this email directly or view it on GitHubhttps://github.com//issues/270#issuecomment-18959939
.

王保平 / 玉伯(射雕)
送人玫瑰手有余香

加个组件链接

已加.