16. API SIMPLE
• gulp.task(name, [deps,], fn)
define a task with optional dependencies.
• gulp.src(glob)
create a stream from given file system glob.
• gulp.dest(folder)
save files from a stream to given directory.
• gulp.watch(glob, tasks)
run a task when one of the globed files is changed.
are just four functions
25. Download and install node.js:
https://nodejs.org/
npm i gulp -g
#1 - INSTALL NODE.JS & GULP
Install gulp globally:
26. • Create a project
• Install global Gulp
• Create a package.json
• Install local Gulp
• Create and configure a Gulpfile.js
npm init
[sudo] npm i -g gulp
npm i gulp --save-dev
#2 - CONFIGURE DEV ENVIRONMENT
64. ORGANIZE YOUR TASKS BY CONTEXT
_default system css js img html
dev
build
deploy
…
copy
delete
move
rename
exec
…
preprocessor
source
maps
lints
…
hint
lint
uglify
formatter
test
…
optmin
total size
…
minify
replace
…