Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-updatepackagever

phataim160.0.4

自动根据当前branch版本号更新package.json中version

readme

Gulp-updatePackageVer

自动根据当前branch版本号更新package.json中version

branch名需为 daily/*.*.*

package.json中加入

    "devDependencies": {

        "gulp-updatepackagever":"0.0.3"

    }

在gulpfile.js中加入:

    var updatepackagever = require("gulp-updatepackagever");

    gulp.task('firstTask', function(){
        //放在所有有关版本号的任务之前执行
        updatepackagever();

    });