【问题标题】:How do I automatically change my package.json version while using gitflow, Jenkins and Node?如何在使用 gitflow、Jenkins 和 Node 时自动更改我的 package.json 版本?
【发布时间】:2017-08-30 20:24:44
【问题描述】:

他们是插件还是我应该使用 Grunt?我似乎在网上找不到任何东西...任何帮助将不胜感激

谢谢

【问题讨论】:

  • 我只知道git version,但我只在MVC5项目中使用过

标签: node.js jenkins git-flow


【解决方案1】:

以下是您可以从中受益的一些选项:

选项 1:
查看npm version 文档。

选项 2:
如果您使用 Grunt,您可能可以使用 grunt-bump

用法:

grunt bump
>> Version bumped to 0.0.2

grunt bump:patch
>> Version bumped to 0.0.3

grunt bump:minor
>> Version bumped to 0.1.0

grunt bump:major
>> Version bumped to 1.0.0

PS: 如果你使用 Gulp,有一个 gulp-bump 包。

【讨论】:

    猜你喜欢
    • 2017-02-21
    • 2021-02-06
    • 2012-10-15
    • 1970-01-01
    • 2021-12-17
    • 1970-01-01
    • 1970-01-01
    • 2020-01-07
    • 2016-04-27
    相关资源
    最近更新 更多