gulp-tarima
v0.4.1Tarima for Gulp
$ npm install gulp-tarima --save
gulpfile.js
var gulp = require('gulp'),
tarima = require('gulp-tarima');
// one-to-one
gulp.task('raw', function() {
return gulp.src('src/views/**/*.*')
.pipe(tarima())
.pipe(gulp.dest('tmp_views'));
});
// bundle
gulp.task('join', function() {
return gulp.src('spec/views/**/*.js.*')
.pipe(tarima('sub/path/views.js'))
.pipe(gulp.dest('tmp_views'));
});
API
tarima(options)
tarima(filename, callback)
When
filename
is provided it will be used asoptions.filename
When
callback
is provided it will be used asoptions.wrapper
if missing.
Options
Please checkout the Tarima's README at GitHub.
All options will be passed directly to the
parse()
andbundle()
method respectively.