gulp-asvn
v1.0.1
Published
> Gulp plugin to work with svn
Downloads
124
Readme
gulp-asvn
Gulp plugin to work with svn
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.