Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

如何界定发布版本? #20

Closed
yyfrankyy opened this issue Jun 8, 2011 · 4 comments
Closed

如何界定发布版本? #20

yyfrankyy opened this issue Jun 8, 2011 · 4 comments
Assignees
Milestone

Comments

@yyfrankyy
Copy link
Contributor

#17 所提到的,pre跟dev版本不纳入,但是目前还有一些模块是没有遵循“约定”来更新。

是否需要一些特定的约定。

比如版本号,就仅支持以下版本号,如果不一样,那就要在transport.js里特殊指定来覆盖package.json 里的配置。

 [0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?
@ghost ghost assigned yyfrankyy Jun 8, 2011
@yyfrankyy
Copy link
Contributor Author

同时还引发另外一个问题,即annotation的优先级。

目前的实现,package.json 会覆盖transport.js,而@name则是tranport.js 优先级要高于目录名。

@lifesinger
Copy link

应该反过来,transport.js 覆盖 package.json

ps: 你那正则太锉了,可以:

\d+(\.\d)+$

@yyfrankyy
Copy link
Contributor Author

额,应该是:

^\d+(\.\d+){2}(\.\d+)?$

http://en.wikipedia.org/wiki/Software_versioning

不能无限个版本号,固定三个数字做版本区分,第四个仅提供给记录revision的某些模块。

yyfrankyy added a commit that referenced this issue Jun 8, 2011
@lifesinger
Copy link

嗯,版本号遵守这个:http://semver.org/ 目前不少开源软件都遵循了

lepture added a commit that referenced this issue Jan 7, 2014
lepture added a commit that referenced this issue Jan 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants