This is a personal boilerplate intended for internal projects.
All code is run through Gulp for an automated workflow. Options:
gulp
: runs thegulp build:dev
taskgulp build
: builds and compiles your Sass and JavaScript files for Productiongulp build:dev
: builds and compiles your Sass and JavaScript files for Developmentgulp watch
: watches your Sass and JavaScript files for any changes and compiles them automaticallygulp clean
: removes yourdist
folder completely.
When watching files with Gulp, new code will automatically be injected to your browser via the LiveReload browser extension.
The Sass structure is based on the sass-boilerplate by Hugo Giraudel. It uses the 7-1 architecture pattern and sticks to Sass Guidelines writing conventions.
The grid is a custom adaptation of the flexbox-based grid by Pintsize.
All newer CSS that still need prefixes are generated automatically by autoprefixer through Gulp.
Every JavaScript file is checked through a linter and minified. New files will be created in the dist/scripts
folder.
Any images contained in the assets/images
folder will be run through a lossless compression for optimal file size.