gulp-tarima

Gulp plugin for Tarima


License
MIT
Install
npm install gulp-tarima@0.3.5

Documentation

Tarima for Gulp

Build Status NPM version Coverage Status

$ 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 as options.filename

    When callback is provided it will be used as options.wrapper if missing.

Options

Please checkout the Tarima's README at GitHub.

All options will be passed directly to the parse() and bundle() method respectively.