gulp-webdav-sync
Put files and folders to a WebDAV server. Deploy with gulp.
Usage
Target is loaded from npmrc - global, user, or project file, or may be passed as a string parameter.
npm set dav http://user:pass@localhost:8000/
var dav = require( 'gulp-webdav-sync' )
gulp.task( 'default', function () {
var options = {
'log': 'info'
, 'parent': 'dist'
}
return gulp.src( 'dist/**' )
.pipe( dav( options ) )
} )
Options
Superset of http.request options parameter.
options.log
Logging threshold. Orthogonal to the console
methods.
string | output |
---|
'error' | |
'warn' | |
'info' | HTTP Responses |
'log' | Debug |
Default: 'error'
options.parent
Relative or absolute path which halves the source path [vinyl.path
] for appending the subsequent to the DAV target URI. Use with glob **
to prevent super-directories from being created on the target. e.g. gulp.src( 'dist/**' )
.
Default: process.cwd()
Development
cd gulp-webdav-sync
npm install
npm test
npm set dav http://user:pass@localhost:8000/
gulp