Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Streams in Gulp.js

Streams in Gulp.js

Slides from my presentation at ViennaJS meetup on 24 June 2015 on Streams in Gulp.js

You can also read an article based on this talk I have written: https://florian.ec/articles/gulp-js-streams/

Florian Eckerstorfer

June 24, 2015
Tweet

More Decks by Florian Eckerstorfer

Other Decks in Programming

Transcript

  1. Read src/*.coffee ➞ Compile ➞ Save tmp/*.js Read tmp/*.js ➞

    Concatenate ➞ Save tmp/all.js Read tmp/all.js ➞ Minify ➞ tmp/all.min.js Copy tmp/all.min.js to dist/all.min.js
  2. var through = require('through2'); module.exports = function (name) { function

    log (file, enc, cb) { console.log(name, ":", file.path); cb(null, file); } return through.obj(log); };