single dest & watch gulp.src

multi dest

var gulp = require('gulp');

var gulp = require('gulp');

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

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

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

var minifyCss = require('gulp-minify-css');

incremental rebuilding var gulp = require('gulp');

gulp.src

gulp.src

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

uglify

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

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

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

return gulp.src('./js/src/*.coffee')

coffee

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

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

.pipe(coffee())

autoprefixer

return gulp.src('./css/src/style.css')

.pipe(uglify())

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

.pipe(gulp.dest('./js/'));

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

cached

gulp.task('script', function(){ return gulp.src('./js/src/*.js') .pipe(cached())

gulp.dest

uglify

});

.pipe(minifyCss())

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

.pipe(rename({extname: '.min.css'}))

.pipe(remember())

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

.pipe(concat('app.js'))

gulp.watch('./js/src/*.coffee', ['js']); });

.pipe(uglify())

});

.pipe(gulp.dest('./js/'));

gulp.dest

minify-css

remember

rename

concat

gulp.dest

gulp.dest

});

gulp.task('css', ['font', 'less'], function(){

task dependency

// do something after font and less });

$ npm install -g gulp

install global

$ npm install --save-dev gulp install local $ npm install --save-dev gulp-other-plugins

run task

$ gulp task_name

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

gulp.src

changed

uglify

gulp.dest

var uglify = require('gulp-uglify'); gulp.task('css', function(){ return gulp.src('./src/*.js')

$ gulp task_name other_task

run multi tasks

.pipe(changed('./dist/')) .pipe(uglify())

gulp.js cheatsheet

The streaming waterworks

only changed

.pipe(gulp.dest('./dist/')); });

this sheet is made in

PDF 1 - GitHub

var concat = require('gulp-concat'); gulp.task('script', function(){ return gulp.src('./js/src/*.js') .pipe(cached()) .pipe(uglify()) .pipe(remember()) .pipe(concat('app.js')).

81KB Sizes 0 Downloads 345 Views

Recommend Documents

1 - GitHub
are constantly accelerated by an electric field in the direction of the cathode, the num- ...... als, a standard fit software written at the University of Illinois [Beechem et al., 1991], ...... Technical report, International Computer Science Instit

1 - GitHub
Mar 4, 2002 - is now an integral part of computer science curricula. ...... students have one major department in which they are working OIl their degree.

Part 1 - GitHub
Apr 27, 2014 - Developing scalable applications with IBM MQ Light and ... Improving the sample application by separating the web-facing component from the.

1 Group Theory - GitHub
describing the group, one can encompass the transformations and their corresponding sym- metries. In fact, every symmetry has an associated group encompassing it. To make this discussion concrete, let's consider an example first and then delve into t

zsh-autosuggestions.zsh(1) - GitHub
zsh-autosuggestions.zsh - a shell script. SYNOPSIS. Documentation automatically generated with `zshelldoc'. FUNCTIONS. _zsh_autosuggest_accept. _zsh_autosuggest_async_pty_create. _zsh_autosuggest_async_pty_destroy. _zsh_autosuggest_async_request. _zs

Chapter 1 - GitHub
Jan 23, 2017 - 1. What are all these things? 2. What is the mean of yi? 3. What is the distribution of ϵi? 4. What is the notation X or Y ? Drawing a sample yi = xi β + ϵi. Write code which draws a sample form the population given by this model. p

Exercises part 1 - GitHub
This R Markdown document contains exercises to accompany the course “Data analysis and visualization using R”. This document contains the exercises ...

Project 1 - GitHub
The analytical solution for this PDE is given by: ... 2 dr is the complementary error ... Show that the accuracy of the solution improves on a finer mesh (as ∆y ...

Lecture 1 - GitHub
Jan 9, 2018 - We will put special emphasis on learning to use certain tools common to companies which actually do data ... Class time will consist of a combination of lecture, discussion, questions and answers, and problem solving, .... After this da

Homework #1 - GitHub
Please select either bus 2 or 3 as reference bus, calculate the line flows, and check if the results are the same. 2. Come up with a case study of LP, and solve it in ...

First page 1 - GitHub
Page 1. First page. 1. Page 2. Second page. 2. Page 3. Third page. 3.

未命名 -1 - GitHub
App.Now it's time to play your robot! Robot Ideas--Further exploration. Programming Guide--Further exploration. Parts List. Wiring. Build the Robotic Arm Tank.

Major Scales 1-9-1 - GitHub
Sep 24, 2016 - Major Scales 1-9-1. Sharps. C. 48. G. 48. D. 48. A. 48. E. 48. B. 48. F. 48. C. 48. Page 2. 2. Major Scales 1-9-1. Flats. C. 48. F. 48. B. 48. E. 48. A.

C++1* Tech Talks - GitHub
6 std::string p_sa = new std::string[5];. // -> elements are default initialized ... S s6. {1, {2, 3, {4, 5, 6, 7 } } }; // compile-time error, ill-formed. 18 int ai[] = {1, 2.0 }; .... be careful with the empty brace initializer (PODs/aggregates vs

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 ...

Queens Community District 1 - GitHub
of residents 5 years or older have limited · English proficiency. Queens. 18%. 20%. NYC. 21%. Queens CD 1 of residents have incomes below the NYCgov poverty threshold. See the federal poverty rate here. NYCgov POVERTY MEASURE11. Queens. 30%. 43%. NYC

CSCI 305 Homework 1 - GitHub
Feb 9, 2018 - 2. What is the name of the paradigm that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data? (1 pt) a. event-driven b. concurrent c. scripting d. object-oriented e. logic f. imperat

zsh-syntax-highlighting.zsh(1) - GitHub
zsh-syntax-highlighting.zsh - a shell script. SYNOPSIS. Documentation automatically generated with `zshelldoc'. FUNCTIONS. _zsh_highlight. _zsh_highlight_add_highlight. _zsh_highlight_apply_zle_highlight. _zsh_highlight_bind_widgets. _zsh_highlight_b

未命名 -1 - GitHub
Page 1 ... Follow our manual to build the. Three-wheeled Robot Car. Try another ... can be used to build a robot tank or a three-wheel robot car. It is also a great ...

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

Bronx Community District 1 - GitHub
Square Miles. Population Density. 2.2. 41,590/sq mi. [. 0.5. Miles. 1Neighborhoods may be in multiple districts. Names and boundaries are not officially designated. 22000 US Census; 32010 US Census; 4American Community Survey 2011-2015 5-Year Estimat

Brooklyn Community District 1 - GitHub
Page 1. 5%. 17%. 7%. 10%. 4%. 25%. 9%. 5%. 5%. 4%. 4%. 3%. 1 & 2 Family Bldgs. Multifamily Walk-up. Multifamily Elevator. Mixed Use. Commercial. Industrial. Transportation/Utility. Public/Institutional. Open Space. Parking. Vacant. Other. 2,606. 5,85