Nuclear Powered Mushroom

    gulp-watch-ejs

    0.2.3 • Public • Published

    gulp-watch-ejs NPM version Build Status Dependency Status

    Gulp plugin for using gulp-watch to watch ejs templates and sub templates included by <% include xx %>

    中文文档

    Install

    $ npm install --save-dev gulp-watch-ejs

    Usage

    var gulp = require('gulp');
    var watchEjs = require('gulp-watch-ejs');
     
    gulp.task('default', function () {
      return gulp.src("./templates/*.ejs")
        .pipe(watchEjs("./templates/*.ejs"))
        .pipe(gulp.dest("./dist"));
    });

    Options

    watchEjs(glob, [options, settings, callback])

    Returns pass-through stream (actually is a Duplex Stream which is created by gulp-watch underneath), that will emit vinyl files (with additional event property) that corresponds to event on file-system.

    License

    MIT © John Xiao

    Install

    npm i gulp-watch-ejs

    DownloadsWeekly Downloads

    20

    Version

    0.2.3

    License

    Apache

    Last publish

    Collaborators

    • bammoo