so, let's get started...
What is Gulp?
The concept of GULP to reduce time-consuming & repetitive tasks with just simple code.
To perform such repetitive tasks it also has Hundreds of plugins available for different tasks on NPM.
How Gulp works?
Gulp is built on node streams and node streams is a continuous flow of data that can be manipulated asynchronously
.pipe() operator is basically a chain of processing elements, so the output of one element is Input of next element
So we can set single Purpose plugins to run task after task with using pipe() operator
Common Task Can Perform with Gulp.js
- Minification of scripts and styles
- Cache busting
- Testing, linting & optimization
- Dev Server
Npm install –g gulp
Then In CMD type ‘npm init’ it will generate a simple package.json
Then install gulp as dev Depedenci ‘npm install --save-dev gulp’
Create an ‘src’ folder
Thanks for reading.
Do let me know If you face any difficulties please feel free to comment below we love to help you. if you have any feedback suggestions then please inform us by commenting.