# gulp memo
gulp ground scheme built upon vinyl and vinyl-fs
# quick ref (the bricks)
- gulp task to define a task
- gulp src to define files reading
- gulp dest to define files writing
- gulp watch to observe files
- nodejs stream the gulp paradigm
- nodejs pipe to chain gulp tasks
- vinyl fs Vinyl adapter for the file system
- vinyl Virtual file format
# gulp node modules
wrapper module for protractor
Check your project's package.json and load all gulp plugins. They are now accessible from gulp-load-plugins.
Ex :
var plugins = require('gulp-load-plugins')();
plugins.jshint = require('gulp-jshint');
plugins.concat = require('gulp-concat');
2
3
4
wrapper module for autoprefixer
A stylesheet, JavaScript and webcomponent reference injection plugin for gulp. No more manual editing of your index.html!
gulp-inject
takes a stream of source files, transforms each file to a string and injects each transformed string into placeholders in the target stream files.
Minify CSS with CSSO.
wrapper module for csso
Concatenates and registers AngularJS templates in the
$templateCache
.
Logs out the total size of files in the stream and optionally the individual file-sizes.
Static asset revisioning by appending content hash to filenames:
unicorn.css
→unicorn-d41d8cd98f.css
Enables you to work on a subset of the original files by filtering them using glob patterns. When you're done and want all the original files back you just use the
restore
stream.
Runs a sequence of gulp tasks in the specified order. This function is designed to solve the situation where you have defined run-order, but choose not to or cannot use dependencies.