gulp-transport

0.8.1 • Public • Published

gulp-transport Build Status Coverage Status

gulp plugin for cmd transport


Install

$ npm install gulp-transport -g

Usage

Transport will use pkg parsed by father

var Package = require('father').SpmPackage;
var transport = require('gulp-transport');
var pkg = new Package('path/to/module');
gulp.src(pkg.main)
  .pipe(transport({pkg: pkg}))
  .pipe(gulp.dest('path/to/dest'));

See example

options

  • pkg: package info parsed by father
  • idleading: cmd id prefix, support simple template, E.g. {{name}}/{{version}}
  • ignore: array that ignore to transport
  • rename: option in rename

parser

  • transport.plugin.tplParser: transport .tpl to .js
  • transport.plugin.jsonParser: transport .json to .js
  • transport.plugin.css2jsParser: transport .css to .js
  • transport.plugin.handlebarsParser: transport .handlebars to .js
  • transport.plugin.cssParser: transport .css to .css

LISENCE

Copyright (c) 2014 popomore. Licensed under the MIT license.

/gulp-transport/

    Package Sidebar

    Install

    npm i gulp-transport

    Weekly Downloads

    49

    Version

    0.8.1

    License

    MIT

    Last publish

    Collaborators

    • popomore
    • sorrycc