svn-push
v0.0.2
Published
svn wrapper
Downloads
2
Readme
push-svn
Push local directory to a specified SVN server
Getting Started
This plugin requires svn
command line
npm install grunt-push-svn --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-push-svn');
The "push_svn" task
Overview
In your project's Gruntfile, add a section named push_svn
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
push_svn: {
options: {
remove: false,
pushIgnore: ['**/*.tmp'],
removeIgnore: ['**/*.gif']
},
main: {
src: '/path to your local directory',
dest: 'https://svn.example.com/path/to/your/repo',
tmp: './.build'
},
},
})
Options
options.username
Default value: undefined
If the target repo need authentication and you don't have the authentication saved, set username and password in Options.
options.password
Type: String
options.remove
Type: Boolean
Default value: false
With options.remove
enabled, remote file will be removed if it does not exist in local directory.
options.removeIgnore
Type: Array
Default value: []
Specify exclude patterns for options.remove
options.pushIgnore
Type: Array
Default value: []
Specify exclude patterns for local files.
options.message
Type: String
Default value: "committed with push-svn"
options.trymkdir
Type: Boolean
Default value: false
Try to mkdir in remote repo if dest does not exist.
options.svnPath
Type: String
Default value: "svn"
Path to svn(optional)