async streams

serial join streamqueue

stream array

gulp.src

gulp.src

less

autoprexier

less

gulp.src

gulp.dest

gulp.dest

autoprefixer

cssimport

concat

gulp.src

gulp.src

.src gulp

var gulp = require('gulp'); var streamqueue = require('streamqueue');

gulp .src

consolidate

te olida cons

cons olida te

rename

e

m rena

rena m

e

gulp.dest

t

.des gulp

gulp .d

est

var less = require('gulp-less'); var cssimport = require('gulp-cssimport');

merge

minify-css

es.concat

var autoprefier = require('gulp-autoprefixer'); gulp.task('css', function(){ return streamqueue({ objectMode: true },

var gulp = require('gulp'); var merge = require('merge-stream');

gulp.dest

gulp.src('./css/src/first.less') .pipe(less()),

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

gulp.src('./css/src/second.css')

var autoprefixer = require('gulp-remember');

gulp.task('page', function(){

var gulp = require('gulp');

var tasks = data.map(function(entry){

var es = require('event-stream');

return gulp.src('./templates/a.js')

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

.pipe(consolidate({

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

title: entry.title,

.pipe(cssimport()) .pipe(autoprefixer('last 2 versions')))

gulp.task('css', function(){

.pipe(concat('app.css'))

return merge(

.pipe(minifyCss())

gulp.src('./css/src/first.less')

.pipe(gulp.dest('./css/'))

.pipe(less()) .pipe(gulp.dest('./css/')), gulp.src('./css/src/second.css') .pipe(autoprefixer()) .pipe(gulp.dest('./css/')) );

attrs: entry.attrs })) .pipe(rename({ basename: entry.name, extname: '.html' })) .pipe(gulp.dest('./html/')); }); return es.concat.apply(null, tasks); });

});

gulp.js

});

data = [ { name: 'apple', title: 'Apple Cake', attrs: some_data }, { name: 'orange', title: 'Orange Cookie', attrs: some_data } ];

cheatsheet

The streaming waterworks

this sheet is made in

PDF 2 - GitHub

css/src/first.less') .pipe(less()), gulp.src('./css/src/second.css') .pipe(cssimport()) .pipe(autoprefixer('last 2 versions'))) .pipe(concat('app.css')) .pipe(minifyCss()).

77KB Sizes 12 Downloads 304 Views

Recommend Documents

HW 2. - GitHub
0. > JL. f t. HW 2."? - /*//. =:- 122. ^ 53.0. C.VK,. , r~/ = O*. ^. -._ I"T.

Chapter 2 - GitHub
Jan 30, 2018 - More intuitively, this notation means that the remainder (all the higher order terms) are about the size of the distance between ... We don't know µ, so we try to use the data (the Zi's) to estimate it. • I propose 3 ... Asymptotica

Project 2 - GitHub
Use the following explicit schemes: 1. Finite-Volume: FTCS for both convection and diffusion. 2. Finite-Volume: First order upwind for convection, FTCS for ...

Queens Community District 2 - GitHub
for Public Use Microdata Areas (PUMAs). PUMAs are geographic approximations of community districts. 5NYC Dept of City Planning Facilites Database (2017); 6 Differences of less than 3 percentage points are not statistically meaningful. 7NYC Dept of Pa

CSCI 305 Homework 2 - GitHub
Feb 23, 2018 - Describe how Fortran common blocks work and give an example. What happens if two named common blocks with the same name contain different variables? What is the difference between a blank common and a named common? What does the linker

Bronx Community District 2 - GitHub
for Public Use Microdata Areas (PUMAs). PUMAs are geographic approximations of community districts. BX 2 shares PUMA 3710 with BX 1, and the ACS population estimate cannot be reliably disaggregated. 5NYC Dept of City Planning Facilites Database (2017

Recordset 1 och 2 - GitHub
TTEKOKORTISAR. EKK. TT-GÖTEBORG-PM. GPM. TT-NORRLANDS-PM. NPM .... This means of course that this field not is repeated. The signatures are SGML ...

STRUCTURE and Problem #2 - GitHub
Feb 7, 2017 - Uses multi-locus genotype data to investigate population ... the data betwee successive K values ... For this project, analyzing Fst outlier loci.

Brooklyn Community District 2 - GitHub
for Public Use Microdata Areas (PUMAs). PUMAs are geographic approximations of community districts. 5NYC Dept of City Planning Facilites Database (2017); 6 Differences of less than 3 percentage points are not statistically meaningful. 7NYC Dept of Pa

android sai tech (2) - GitHub
Android is a mobile operating system that is based on a modified version of Linux. It was originally developed by a startup of the same name, .... Page 10 ...

Manhattan Community District 2 - GitHub
for Public Use Microdata Areas (PUMAs). PUMAs are geographic approximations of community districts. MN 2 shares PUMA 3810 with MN 1, and the ACS population estimate cannot be reliably disaggregated. 5NYC Dept of City Planning Facilites Database (2017

LibreOffice Weekly News #2 - GitHub
Jun 21, 2014 - Aside these software releases, we have also seen a great one from a team most of ... Fix the JDK dependency on OS X for Rhino[9][10], a FOSS ..... companies: a French one for the website specification and an Italian for the ...

Operating Systems Homework #2 - GitHub
May 7, 2015 - #include ... unsigned int tick () { // get current time (msec) ... Repeat think-hungry-eating cycle during given execution time in secs.

1 Introduction 2 Vector magnetic potential - GitHub
Sep 10, 2009 - ... describes the derivation of the approximate analytical beam models ...... of the source whose solution was used to correct the residual data.

3,&&2/2 3& ' ɹɶ 7 - GitHub
'LPHQVLRQV. /HQJWK. :LGWK. +HLJKW. PP ɲɸɱ ɹɱ ɹɶ. LQFK ɷ ɸ ɴ ɲ ɴ ɴ. 0DWHULDOV. 0DWHULDO. 3RO\FDUERQDWH. %DVH FRORXU. 5$/ ɸɱɴɶ.

Old Dominion University Lecture 2 - GitHub
Old Dominion University. Department of ... Our Hello World! [user@host ~]$ python .... maxnum = num print("The biggest number is: {}".format(maxnum)) ...

Bronx Community District 2 Basemap - GitHub
South. Brother. Island. Rainey. Park. Soundview. Park. Tiffany. Street Pier. Barretto. Point Park. C o n cre te. P lan t P ark. Bronx. River. Parkway. North. Brother. Island. LAFAYETTE AV. HUNTS. PO. INT. AV. BARRETTO. ST. LONGWOOD. AV. BR. UC. KN. E

Porting to BamTools 2.x Attention! - GitHub
Oct 11, 2011 - Our development philosophy with BamTools so far has been to allow ... Please be aware that the coordinate issue will affect any code that uses the multi-reader's ... I hope to update the API tutorial soon to reflect these new.

Brooklyn Community District 2 Basemap - GitHub
E. A. ST. R. IV. E. R. W. ALLABOUT CHANNEL. C o m m o d o re. B arry P ark. Fort. Greene. Park. Cadman. Plaza Park. Columbus Park. B ro o klyn. B rid ge Park. UN. IO. N. ST. UN. IO. N. ST. PEARL ST. VAN BRUNT ST. MARCY AV. 2P. L. M. YRTLE. AV. MANHAT

CSS 2 Visual Cheat Sheet - V4 - GitHub
Add styles to elements with particular attributes. You can also apply styles to HTML elements with particular attributes. The style rule below will match all input ...

Staten Island Community District 2 - GitHub
for Public Use Microdata Areas (PUMAs). PUMAs are geographic approximations of community districts. 5NYC Dept of City Planning Facilites Database (2017); 6 Differences of less than 3 percentage points are not statistically meaningful. 7NYC Dept of Pa

Queens Community District 2 Basemap - GitHub
JEWEL ST. 61 ST. 54. RD. 63 ST. ECKFORD ST. 58. RD. 60 ST. 72 ST. 35 ST. 53. RD. 57. RD. 59 PL. 34 ST. 54 ST. 48 ST. 34 ST. RUSSELL ST. NEWEL ST. DIAMOND ST. 55. AV. DUPO. N. T. ST. 62 DR. STEINW. AY ST. 61 RD. LO. MBARDY. ST. OLD. LA. 62 RD. 37. RD.