AlessioG / gulp-slang

A Gulp plugin for curling files to JCR / Sling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-slang

Curl files to running JCR

Install

    npm install gulp-slang --save-dev

Example

    var gulp = require('gulp');
    var slang = require('gulp-slang');

    gulp.task('watch', function() {
        gulp.watch('js/*.js', function(e) {
            var path = e.path;
            return gulp.src(path)
                .pipe(slang(path, {
                    port: 4503
                }));
        });
    });

Options

host

Type: string Default: localhost

hostname to running sling instance.

port

Type: number Default: 4502

Port for running sling instance.

username

Type: string Default: admin

Username for authentication.

password

Type: string Default: admin

Password for authentication.

About

A Gulp plugin for curling files to JCR / Sling

License:MIT License


Languages

Language:JavaScript 100.0%