A responsive mobile-first offline capable restaurant finder
run gulp's default
and serve:dist
tasks
You will need to have NodeJs & npm installed in your machine.
run npm install
to download all associated dependencies.
Steps to run the project:
- Run gulp
default
task in order to:- Clean the dist folder.
- Optimise jpg images and convert them to webp.
- Optimise css styles.
- Lint all javascript files.
- Copy js scripts into dist folder.
- Copy the service worker into dist.
- Minify html.
- copy
manifest.json
file.
- Run gulp
serve:dist
task
-
Gulp's
serve
task will mount an http server with unoptimised ES6 scripts and watch for any change on the root folder. -
Gulp's
serve:dist
task will mount an https server and minify and uglify and Babel transpile every javascript file on the dist folder and watch for every change on the dist folder.
- Configure a commit message template
git config --global commit.template <.git-commit-template.txt file path>