Socket
Book a DemoInstallSign in
Socket

gulp-jstransformer

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jstransformer

Gulp support for JSTransformer.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
Maintainers
6
Weekly downloads
 
Created
Source

gulp-jstransformer

Run JSTransformers through Gulp.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install gulp-jstransformer

Example

var gulp = require('gulp');
var jstransformer = require('gulp-jstransformer');
var rename = require('gulp-rename');

gulp.task('default', function() {
  var options = {
    engine: "octet"
  };
  var locals = {
    name: "World"
  };
  // Process each .octet file.
  return gulp.src(['**.octet'])
    // Invoke the JSTransformer Gulp plugin, passing in the options and locals.
    .pipe(jstransformer(options, locals))

    // Rename the outputed files accordingly.
    .pipe(rename(function (path) {
      path.extname = ".html"
    }))

    // Output all the files to the out directory.
    .pipe(gulp.dest('out'));
});

License

MIT

Keywords

jstransformer

FAQs

Package last updated on 24 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts