A very opinionated, lightweight, version of HTML5 Boilerplate with conditionally-loaded polyfills and an opinionated CSS reset for firing up web projects in no time.
Boy comes with a handy project launcher so you can spin up a Boy boilerplate with all the relevant files pulled freshly from this repo:
$ npm i -g boy
$ boy foo
- A lightweight/2-space batch of HTML5 Boilerplate features
- index.html (with all the fluff removed)
- .editorconfig (modified to 2 spaces)
- .htaccess
- Harsher outdated browser warning (warns on IE9 instead of IE8)
- Minified and sourcemapped
reeeset (opinionated Normalize.css for the real world)
- Polyfills for IE8 and below a la ❤️ ie-love
- Conditionally loaded so only IE8 and below users will have to download it.
- html5shiv (in the right place)
- calc-polyfill
- jQuery 1.x.x
- Selectivizr 2
- Respond.js
- Empty/valid package.json for quick
npm install --save-dev
s .gitignore
for Node, Bower, and Sass
Modernizr isn't included by default for a few reasons.
- I very rarely actually use Modernizr.
- You should create your own custom build of Modernizr and put it at the bottom of the document if possible. Read Paul Irish's comment on it.
@supports
is going to be here soon.