gulp-ecs-svn

1.0.4 • Public • Published

gulp-ecs-svn

Gulp plugin to work with svn

NPM

This is a simple interface to export packages from SVN to work on gulp.js with SVN. It assumes you can export without providing SVN login credentials and you'll need to install an SVN client - on Windows TortoiseSVN is your best bet.

For a full list of SVN client packages look here.

Install

$ npm install --save-dev gulp-ecs-svn

Usage

var gulp = require('gulp');
var svn  = require('gulp-ecs-svn');
var readlineSync = require('readline-sync');
 
var svnConf = {
    svnDir :'./app',
    destDir : './export',
}
var svnConf = {
    svnDirCore :'http://svn-repository/app',
    destDir : './app',
}
 
var version = 'trunk';
 
gulp.task('set-svn-build-version', function() {
    version = readlineSync.question('What SVN version shall we export [trunk]?: ', {defaultInput: 'trunk'});
});
 
gulp.task('export-svn', function() {
      return svn.export(svnConf.svnDir, svnConf.destDir, version, function(err){
             if(err) throw err;
    });
});
 
 
 
 

Run Gulp Tasks

$ gulp set-svn-build-version, export-svn

License

MIT. See package LICENSE.md for details.

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-ecs-svn

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • gordon.sandeman