gulpBoiler17
gulpBoiler17 copied to clipboard
A simple front end boilerplate using Gulp, Babel, Scss, ESLint and Browsersync
gulpBoiler17
A simple front end boilerplate using Babel (es2015 and es2017), Gulp, Scss, ESLint, and Browsersync.
Get started
git clone --depth=1 https://github.com/mildrenben/gulpBoiler17.git
npm i
npm start
Done.
Components
- 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.
Tools
- 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.