Notice: Please read this issue
tmodjs's gulp version.
$ npm install gulp-tmod --save-dev
Similar to tmodjs options with a bit of difference.
Default: false
We use gulp steam other than tmodjs output, so set it to false prevent tmodjs create files.
Type: String
Default: template.js
This will be use as a path pass to gulp-util File
Default: __dirname
Your template basepath.
Minify is deprecated, we should use gulp-uglify
Watch is deprecated, we should use gulp.watch
var tmodjs = require('gulp-tmod');
gulp.task('default', function(){
var stream = gulp.src('template/**/*.html')
.pipe(tmodjs({
templateBase: 'template'
}))
.pipe(gulp.dest('dist'));
return stream;
});
$ npm test
- Tt's a breaking change since 1.0.0.
See tmodjs
Issues should be reported on the tmodjs issue tracker