gulp-git-deploy

1.5.2 • Public • Published

gulp-git-deploy

CirlceCI:Circle CI DroneIO:Build Status BadgeFuryIO:npm version

Packagegulp-git-deploy
Description Run deploy tasks with gulp if there are any changes on the Git repo. (gulpjs.com)
Node Version >= 0.9
Gulp Version 3.x

Usage

Install

npm install gulp-git-deploy --save

Example

var gulp = require('gulp');
var gitDeploy = require('gulp-git-deploy');
 
 
gulp.task('build', function(){
 //your build stuff.
})
 
gulp.task('deploy',function(){
 
  return gitDeploy({remote: 'origin', name: 'master'}, function(){
    //put here whatever you want to do after merging, usually a build task.
    gulp.start('build')
  });
 
})
 
 

Options

remote

Set the git remote

Type: string

Default:'origin'

name

Set the branch name

Type: string

Default: 'master'

reset

Reset head position(discards any change to your branch).

Type: boolean

Default: true

Package Sidebar

Install

npm i gulp-git-deploy

Weekly Downloads

10

Version

1.5.2

License

MIT

Last publish

Collaborators

  • agualbbus