Tasks can be run by running `yarn gulp TASK_NAME`. If you prefer to use your global gulp installation then `gulp TASK_NAME`.
build
To build production ready dist.serve
To serve content in dev mode.default
which is run by executinggulp
oryarn gulp
and it's the same asserve
These scripts can be run by yarn SCRIPT_NAME
or npm run SCRIPT_NAME
. They're available in package.json
with key: scripts
optimize:images
It executes theimages
taskbuild
It executes thebuild
taskstart
It executes theserve
taskprepush
This command is run as a pre-push hook by husky. Which means everytime you try to push you code to remote, it will execute this task. Currently it lints js & css.lint:js
Lints js scripts in srclint:css
Lints css files in srcformat
: Format files in src
- We added husky for precommit & prepush hooks.
- We added gulp-rev-all in an attempt to use revisioned files.
- We separated the images optimization task from the build queue to be run on its own
- We added stylelint to lint css too.
- Added service worker support but disabled by default. You need to uncomment
registerServiceWorker()
in main.js to enable it.
- Finetune the precommit & prepush hooks
- Finetune gulp-rev-all task and replace it if needed
- Add service workers support using workbox