what is gulp javascript code example
Example 1: use gulp
npm init // create the package.json file
npm install -g gulp //If you haven't installed gulp globally before
npm install --save-dev gulp // --save-dev dependancy package.json
npm install --save-dev gulp-sass
npm install --save-dev gulp-print
your commands > gulpfile.js
gulp command
Example 2: what is gulpjs
/*
What is gulpjs ?
It's just a tookit library for optimizing some repetative tasks like comilying Sass every time manually
by using gulpjs we can do repeatative task with one command and we can also watch if any change on those task occur
e.g:
Moving/Copying Files
Concatenate JavaScript Files
Minify / Uglify JavaScript Files
Compile Sass/scss Files
Optimize Images with Imagemin
some resources to practice :
sample repo : https://github.com/abdulmoizshaikh/gulpexapp
crash course : https://www.youtube.com/watch?v=1rw9MfIleEg&ab_channel=TraversyMedia
*/