egg icon indicating copy to clipboard operation
egg copied to clipboard

egg项目自动化版本控制

Open jjackychen opened this issue 8 years ago • 4 comments

项目页面上需要显示当前项目的版本号,每次更新都要手动写一个,egg有插件可以自动生成项目的版本号吗?

jjackychen avatar May 09 '18 03:05 jjackychen

Translation of this issue:


egg project automation version control

The project page needs to display the current project version number, each update must be manually written, egg plug-in can automatically generate the project version number?

egg-bot avatar May 09 '18 03:05 egg-bot

I don't understand what you mean.

popomore avatar May 09 '18 03:05 popomore

I mean my project each release has a release version number like V1.0.0(2018050901), but my project must show this version number in the html file. Now, each release I must be manually written the release version number in the html file. If a egg plug-in can help me automatically generate the release version number in the html file instead of manually written the release version number.

jjackychen avatar May 09 '18 03:05 jjackychen

it's not a responsibility of egg, you can write your own logic to do this as your wish.

why not just use package.json 's version ? you could bump version by npm version at release

atian25 avatar May 09 '18 09:05 atian25