An ES6 boilerplate with common frontend tasks using Gulp 4 as build system.
This is a work in progress. Feel free to contribute.
Node (use brew or install it from here)
brew install nodeGulp (Getting started)
npm install gulp-cli -g
npm install gulp -DOSX & Linux
git clone https://github.com/wamujlb/frontend-gulp-boilerplateWindows
git clone https://github.com/wamujlb/frontend-gulp-boilerplatenpm initThen each time you clone the repo, use (yarn is better and faster):
yarn install / npm installgulp devAll the magic begins here:
- process
.htmlfrom.hbsfiles - process
.cssfrom.scss,.sassfiles - process
.jsfiles - create a server with BrowserSync and automatically run it
- watch changes in
/srcfolder - automatic reload on changes in
/srcfolder
- Write your
.hbscode in/src/templates/folder - Write your
.sassor.scsscode in/src/sass/folder - Write your
.jscode in/src/js/folder - Add images, fonts, icons, js libraries in
/src/assetsfolder
MIT