How to use the gulp-git.tag function in gulp-git

To help you get started, we’ve selected a few gulp-git examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mcfly-io / gulp-mux / gulp_tasks / tasks / release.js View on Github external
gulp.task('tag', false, ['commit'], function(cb) {
    var pkg = helper.readJsonFile('./package.json');
    var v = 'v' + pkg.version;
    var message = pkg.version;
    git.tag(v, message, function(err) {
        if (err) {
            throw new Error(err);
        }
        cb();
    });
});
github mcfly-io / generator-sublime / gulp_tasks / tasks / release.js View on Github external
gulp.task('tag', false, ['commit'], function(cb) {
    var pkg = helper.readJsonFile('./package.json');
    var v = 'v' + pkg.version;
    var message = pkg.version;
    git.tag(v, message, function(err) {
        if (err) {
            throw new Error(err);
        }
        cb();
    });
});
github mcfly-io / generator-mcfly / gulp_tasks / tasks / release.js View on Github external
gulp.task('tag', false, ['commit'], function(cb) {
    var pkg = helper.readJsonFile('./package.json');
    var v = 'v' + pkg.version;
    var message = pkg.version;
    git.tag(v, message, function(err) {
        if (err) {
            throw new Error(err);
        }
        cb();
    });
});
github mcfly-io / generator-sublime / templates / gulps / tasks / release.js View on Github external
gulp.task('tag', false, ['commit'], function(cb) {
    var pkg = helper.readJsonFile('./package.json');
    var v = 'v' + pkg.version;
    var message = pkg.version;
    git.tag(v, message, function(err) {
        if (err) {
            throw new Error(err);
        }
        cb();
    });
});
github adamreisnz / ngGo / gulpfile.js View on Github external
function tagBump(cb) {
  var version = packageJson().version;
  git.tag(version, 'Tag version ' + version, function(error) {
    if (error) {
      return cb(error);
    }
    git.push('origin', 'master', {
      args: '--tags'
    }, cb);
  });
}

gulp-git

Git plugin for gulp (gulpjs.com)

MIT
Latest version published 3 months ago

Package Health Score

72 / 100
Full package analysis