A simple front end boilerplate using Babel (es2015 and es2017), Gulp, Scss, ESLint, and Browsersync.
git clone --depth=1 https://github.com/mildrenben/gulpBoiler17.git
npm i
npm start
Done.
- HTML - HTML sits in the top level
srcfolder. - SCSS - Only one
.cssfile is written (style.css). You need to import all other.scssfiles into the existingstyle.scssfile. - JS - Babel compiles the JS with the es2015 and es2017 presets. It is not concatenated, I suggest using
gulp-concatif you need multiple files. - Images - Images are minified from the
src/imgdirectory.
- Linting - ESLint (extended from eslint recommended) lints the JS with some custom rules as well. Use
npm lintto manually run it. If you want to lint on every git commit see here - Hot reloading - SCSS changes are injected. HTML and JS changes reload the page.