gulp-spm

0.11.3 • Public • Published

gulp-spm Build Status Coverage Status

gulp plugin for cmd transport

name has changed after 0.9.x, old version see gulp-transport


Install

$ npm install gulp-spm -g

Usage

Transport will use pkg parsed by father

var Package = require('father').SpmPackage;
var transport = require('gulp-spm');
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

stream plugin

  • transport.plugin.tpl: transport .tpl to .js
  • transport.plugin.html: transport .html to .js
  • transport.plugin.json: transport .json to .js
  • transport.plugin.css2js: transport .css to .js
  • transport.plugin.handlebars: transport .handlebars to .js
  • transport.plugin.css: transport .css to .css
  • transport.plugin.json: transport .json to .js

LISENCE

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

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-spm

Weekly Downloads

39

Version

0.11.3

License

MIT

Last publish

Collaborators

  • popomore
  • sorrycc