gulp-kit-2

0.2.2 • Public • Published

gulp-kit-2

Integrates node-kit with gulp 4 to compile .kit templates with your own build system.

Usage

var kit = require('gulp-kit-2');
const html = done => {
    src('src/kit/index.kit')
    .pipe(kit())
    .pipe(dest('dist/'));
    done();
};
exports.html = html;

Options

You can turn off the default behaviour of ignoring attempts to compile partials by passing {compilePartials : true} to the plugin.

  // ... as above
  .pipe( kit({compilePartials : true}) )
  // ... further pipes, as above

You can also pass through any user-defined CodeKit variables by passing { variables: { key: value, key: value, etc. }} to the plugin.

  // ... as above
  .pipe( kit({
      variables: {
			"$uiVer": pkg.version,
			"$bsVer": "3.1"
	}}) )
  // ... further pipes, as above

Package Sidebar

Install

npm i gulp-kit-2

Weekly Downloads

10

Version

0.2.2

License

BSD-2-Clause

Unpacked Size

2.68 kB

Total Files

3

Last publish

Collaborators

  • tibor.pino