Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "gulp-svn", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "SVN plugin for gulp (gulpjs.com)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/yasinkocak/gulp-svn", |
@@ -23,2 +23,37 @@ #gulp-svn | ||
### Install | ||
npm install gulp-svn --save | ||
npm install gulp-svn --save | ||
## Example | ||
```javascript | ||
var gulp = require('gulp'); | ||
var svn = require('gulp-svn'); | ||
// Run svn add | ||
gulp.task('add', function(){ | ||
return svn.add('/file.js'); | ||
} | ||
// Run svn add with error | ||
gulp.task('add', function(){ | ||
return svn.add('./file.js', function(err){ | ||
if(err) throw err; | ||
}); | ||
}); | ||
// Run svn add with options | ||
gulp.task('add', function(){ | ||
return svn.add('./file.js', {args: '--force'}, function(err){ | ||
if(err) throw err; | ||
}); | ||
}); | ||
// Run svn commit | ||
gulp.task('commit', function(){ | ||
return svn.commit('Initial commit', function(err){ | ||
if(err) throw err; | ||
}); | ||
}); | ||
// Run gulp | ||
gulp.task('default',['add', 'commit']); | ||
``` |
14440
58