gulp-asvn

1.0.1 • Public • Published

gulp-asvn

Gulp plugin to work with svn

NPM

This isn't a full SVN solution, it's only a interface to work on gulp.js with SVN. If you have not installed a client svn, you need install one.

Find Here the respective client for your OS with install instructions:

Apache Subversion Binary Packages.

Install

$ npm install --save-dev gulp-asvn

Usage

var gulp = require('gulp');
var svn  = require('gulp-asvn');
 
var svnConf = {
    svnDir :'./app',
    destDir : './export',
}
 
gulp.task('checkout', function() {
     return svn.checkout (svnConf.svnDir, function(err){
             if(err) throw err;
    });
});
 
gulp.task('add', function() {
      return svn.add (svnConf.svnDir, function(err){
             if(err) throw err;
    });
});
 
gulp.task('export', function() {
      return svn.export(svnConf.svnDir, svnConf.destDir, function(err){
             if(err) throw err;
    });
});
 
gulp.task('commit', function() {
      return svn.commit (svnConf.svnDir, function(err){
             if(err) throw err;
    });
});
 
 
 

Run Gulp Tasks

$ gulp checkout
$ gulp add
$ gulp export
$ gulp commit

License

MIT. See LICENSE.md for details.

Readme

Keywords

Package Sidebar

Install

npm i gulp-asvn

Weekly Downloads

46

Version

1.0.1

License

MIT

Last publish

Collaborators

  • artux