gulp-dotjsify
0.0.2 • Public • Published gulp-dotjsify
Gulp plugin for pre-compiling doT.js templates
Usage
Installing gulp-dotjsify
npm install gulp-dotjsify --save-dev
Options
options.type
Type: String
This options specifies the output type that will be used. Available types
amd
- AMD modules
cjs
- CJS modules
es6
- ES6 modules
usages
You can use the plugin in your gulpfile.js
var gulp = require('gulp');
var dotjsify = require('gulp-dotjsify');
gulp.task('default', function () {
gulp.src('./path/to/dotjs/templates/*.dot')
.pipe(dotjsify({
type: 'cjs'
}))
.pipe(gulp.dest('./precompiled/result'));
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.0.2 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.0.2 | 1 | |
0.0.1 | 0 | |
Package Sidebar
Install
Weekly Downloads