gulp-transport

gulp plugin for cmd transport

gulp-transport

gulp plugin for cmd transport


$ npm install gulp-transport -g

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

  • 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
  • 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

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