20 Cool Things You Can Do With Gulp
What is Gulp? Tool for building javascript applications Front end build system Built on NodeJS Common Gulp tasks get rid of whitespaces in scripts therefore save space concatenate files therefore save space let browser know if there's a new version of a cached file testing linting optimization also a web server plugin to run code on a development server How Gulp exactly works built on Node streams streams - flow of data that can be manipulated asynchronously files are linked through pipelines - the pipe() operator output of one file is the input of another - run task after task maybe linking different plugins for example the files are not affected until all the plugins had been processed Gulp is based on streams and javascript code Configuring Gulp 1) Install Gulp globally - access to it anywhere on your system npm install -g gulp 2) Create the directory for your project mkdir exampleProject 3) cd into the ...