gulp-fit

0.1.0 • Public • Published

Build Status Coverage Status

gulp-fit

A simple gulp plugin for applying fit-template engine with gulp.

usage

with a fit-template source like this (test.js):

var mode = '{{=$mode}}';

then a gulpfile.js file like this:

const fit = require('gulp-fit');
const gulp = require('gulp');

gulp.task('set_mode_debug', () => {
    return gulp.src('src/test.js')
        .pipe(fit({mode:'debug'}))
        .pipe(gulp.dest('build'));
});

then the set_mode_debug task will create a test.js file in the build directory with contents like this:

var mode = 'debug';

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-fit

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.19 kB

Total Files

7

Last publish

Collaborators

  • fillano