How to use the gulp-git.commit 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 archilogic-com / 3dio-js / tasks / release.js View on Github external
function gitCommit () {
  // commit build and package.json with updated version number
  return gulp.src([
    path.join(srcDir, '*'),
    'package.json',
    'package-lock.json'
  ]).pipe(git.commit(gitCommitMessage))
}
github sqlviz / sqlviz / website / static / pivottable / gulp / version.js View on Github external
gulp.task('tag', function() {
    return gulp.src(['./package.json', './bower.json', './pivottable.jquery.json'])
    .pipe(git.commit('version bump'))
    // read only one file to get the version number
    .pipe(filter('package.json')) 
    .pipe(tag_version());
});
github dotlouis / cardboard / gulpfile.js View on Github external
function inc(importance) {
    // get all the files to bump version in
    return gulp.src(['./manifest.json','./package.json', './bower.json'])
        // bump the version number in those files
        .pipe(bump({type: importance}))
        // save it back to filesystem
        .pipe(gulp.dest('./'))
        // commit the changed version number
        .pipe(git.commit('bumps package version'))
        // read only one file to get the version number
        .pipe(filter('manifest.json'))
        // **tag it in the repository**
        .pipe(tag_version());
}
github nicksrandall / kotojs / gulpfile.js View on Github external
function inc(importance) {
  // get all the files to bump version in
  return gulp.src(['./package.json', './bower.json'])
    // bump the version number in those files
    .pipe(bump({type: importance}))
    // save it back to filesystem
    .pipe(gulp.dest('./'))
    // commit the changed version number
    .pipe(git.commit('bumps package version'))

    // read only one file to get the version number
    .pipe(filter('package.json'))
    // **tag it in the repository**
    .pipe(tag_version());
}
github eslint / doctrine / gulpfile.js View on Github external
function inc(importance) {
    // get all the files to bump version in
    return gulp.src(['./package.json'])
        // bump the version number in those files
        .pipe(bump({type: importance}))
        // save it back to filesystem
        .pipe(gulp.dest('./'))
        // commit the changed version number
        .pipe(git.commit('Bumps package version'))
        // read only one file to get the version number
        .pipe(filter('package.json'))
        // **tag it in the repository**
        .pipe(tagVersion({ prefix: '' }));
}
github archilogic-com / 3dio-inspector-plugins / tasks / release.js View on Github external
function gitCommit () {
  return gulp.src(['build/*', 'package.json', 'package-lock.json'])
    .pipe(git.commit(gitCommitMessage))
}
github acierto / gulp-release / main.js View on Github external
var commitIt = function (version, cb) {
        var commitMessage = "Bumps version to v" + version;
        return gulp.src('./*.json', srcConfig).pipe(git.commit(commitMessage, {cwd: rootDir}))
            .on('end', function () {
                git.push('origin', currentBranch + ':' + branch, {cwd: rootDir}, cb);
            });
    };
github bevacqua / measly / gulpfile.js View on Github external
function tag () {
  var pkg = require('./package.json');
  var v = 'v' + pkg.version;
  var message = 'Release ' + v;

  return gulp.src('./')
    .pipe(git.commit(message))
    .pipe(git.tag(v, message))
    .pipe(git.push('origin', 'master', '--tags'))
    .pipe(gulp.dest('./'));
}
github bevacqua / sektor / gulpfile.js View on Github external
function tag () {
  var pkg = require('./package.json');
  var v = 'v' + pkg.version;
  var message = 'Release ' + v;

  return gulp.src('./')
    .pipe(git.commit(message))
    .pipe(git.tag(v, message))
    .pipe(git.push('origin', 'master', '--tags'))
    .pipe(gulp.dest('./'));
}
github Kaixhin / FGMachine / gulpfile.js View on Github external
gulp.task("commit-changes", function() {
  return gulp.src(".")
  .pipe(git.add())
  .pipe(git.commit("chore: bump version number [ci skip]"));
});

gulp-git

Git plugin for gulp (gulpjs.com)

MIT
Latest version published 2 days ago

Package Health Score

73 / 100
Full package analysis