Gulp & SVN

NPM

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

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

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('commit', function() {
         return svn.commit (svnConf.svnDir, function(err){
                if(err) throw err;
    });
});

Run Gulp Tasks

$ gulp checkout
$ gulp add
$ gulp commit

License

MIT. See LICENSE.md for details.