Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 493 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 493 Bytes

gulp-p4

perforce plugin for gulp

Install

npm install gulp-p4 --save-dev

Example

var p4 = require('node-perforce');
var gulp = require('gulp');
var gulpP4 = require('gulp-p4');

gulp.task('default', function(callback) {
  p4.changelist.create({description: 'hello world'}, function(err, cl) {
    if (err) return callback(err);
    gulp.src('./*.js')
      .pipe(gulpP4('add', {changelist:cl}))
      .pipe(gulp.dest('./dist'));
    callback();
  });
});