Skip to content

gfra54/gulp-nodekit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-nodekit

Integrates node-kit with gulp to compile .kit templates with your own build system. This is a fork from https://github.com/fatso83/gulp-nodekit where the node-kit version was too old to handle variables in kit files.

Usage

var kit = require('gulp-nodekit');

gulp.task('default', function(){
    return gulp.src('src/kit/*.kit')
    .pipe(kit())
    .pipe(gulp.dest('dest/'));
});

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

About

Integrate node-kit with gulp

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%