gulp-streamlinejs
Streamline plugin for gulp
Last updated 6 years ago by calvinwiebe .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-streamlinejs 
SYNC missed versions from official npm registry.

Build Status

Notice

As of v0.2.0 this plugin only works with streamlinejs >= 1.x. Please lock to an older version to use streamlinejs <= 0.12.x.

Streamline Plugin for gulp

Supports all modes of streamlinejs (callbacks, fibers, generators, and fast mode of each, respectively)

Usage

var gulp = require('gulp');
var streamline = require('gulp-streamlinejs');
var insert = require('gulp-insert');

var paths = {
  streamlineSrc: [
    'streamline/**/*._coffee',
    'streamline/**/*.coffee',
    'streamline/**/*._js',
    'streamline/**/*.js'
  ],
};

/*
Compile streamline files with gulp-streamlinejs
*/
gulp.task('streamline', function() {
  gulp.src(paths.streamlineSrc)
    .pipe(streamline())
    .pipe(insert.prepend('/* I am at the top!*/\n'))
    .pipe(gulp.dest('./compiled'));
});

Options

It will take all the standard options that the internal streamline transform and compile functions take. See here

Example:

Produce source maps

var sourcemaps = require('gulp-sourcemaps');

gulp.task('streamline', function() {
  gulp.src(paths.streamlineSrc)
  .pipe(sourcemaps.init())
  .pipe(streamline({
    sourceMap: 1
  }))
  .pipe(sourcemaps.write('./'))
  .pipe(gulp.dest('./compiled'));
});

Note: sourcemaps: This follows the gulp-sourcemaps convention. It will apply a vinyl-sourcemaps-apply to the stream with the sourcemap, if it is present.

Contributions

Any contributions welcome!

Current Tags

  • 0.3.0                                ...           latest (4 years ago)
  • 0.0.3                                ...           v0.0.3 (6 years ago)
  • 0.0.4                                ...           v0.0.4 (6 years ago)
  • 0.0.5                                ...           v0.0.5 (6 years ago)
  • 0.0.6                                ...           v0.0.6 (6 years ago)

7 Versions

  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |