AledLewis / gulp-clobber

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-clobber

gulp-clobber is a gulp plugin designed to be used with gulp-watch that detects file changes and promotes these files to an Oracle database using ScriptRunner.

Watch a video demo here.

Installation

Usage

In gulpfile.js:

var gulp = require('gulp'),
    watch = require('gulp-watch'),
    clobber = require('gulp-clobber');

gulp.task('clobber', function() {
  gulp.watch('./Fox5Modules/**/*.xml').on('change', clobber);
  gulp.watch('./FoxModules/**/*.xml').on('change', clobber);
  gulp.watch('./ReportDefinitions/**').on('change', clobber);
});

In gulp-clobber.json:

{
  "scriptrunner": {
    "jdbc": "jdbc:oracle:thin:@host:1521:sid",
    "user": "",
    "password": ""
  }
}

Then run gulp clobber from the command line.

Project Setup

Currently gulp-clobber assumes that you project is set up in the following way. Please note the location of ScriptRunner.jar

CodeSource
    ...
    Fox5Modules
    FoxModules
    gulp-clobber.json
    gulpfile.js
    package.json
    ReportDefinitions
    ...
    ScriptRunner
        Loaders
        Utils
        builder.cfg
    ScriptRunner.jar

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 91.1%Language:PLSQL 8.9%