gulp-transport
v0.8.1
Published
gulp plugin for cmd transport
Downloads
172
Readme
gulp-transport
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.