0.0.1 • Published 9 years ago

gulp-ryspm v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

gulp-spm

NPM version Build Status Coverage Status NPM downloads

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.