How to use gulp-git - 10 common examples

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 iainjmitchell / pageboy.js / gulpfile.js View on Github external
gulp.task('push', ['check-coverage', 'minify'], function(){
	var commitMessage = gulp.env.m || 'refactoring';
	console.log('Tests passed! Pushing code...');
	return gulp
		.src('./.')
		.pipe(git.add())
		.pipe(git.commit(commitMessage))
		.pipe(git.push());
});
github clappr / clappr / tasks / bump.js View on Github external
gulp.task('git-commit', function(cb) {
  gulp.src('.')
    .pipe(git.add())
    .pipe(git.commit("bump to " + args.tag))
    .pipe(gcallback(cb))
});
github Cryptonomica / cryptonomica / src / main / webapp / vendors / angular-ui-uploader / 1.1.3 / gulpfile.js View on Github external
gulp.task('release:commit', ['release:rebuild'], function() {
    return gulp.src(['./package.json', 'dist/**/*'])
            .pipe(git.add())
            .pipe(git.commit(versionAfterBump));
});
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);
            });
    };

gulp-git

Git plugin for gulp (gulpjs.com)

MIT
Latest version published 4 months ago

Package Health Score

70 / 100
Full package analysis