-
Notifications
You must be signed in to change notification settings - Fork 0
Introduction
Opinionated boilerplate that can be used to start a new static site project. JavaScript all the way down.
It's built around the JAMstack idea with modern development tools as outlined in the Front-end Developer Handbook 2019. This project aims to set sensible defaults for best practices of front-end development. This boilerplate favors core web technologies (HTML, CSS, and JavaScript) for a 'simple' developer experience.
It tends to be on the front-end design side from the great divide gatekeepers.
- Uses
11ty
as a static site generator which compilesnunjucks
templates - Compiles SCSS (
postcss
), minifies (cssnano
) & prefixes (autoprefixer
) - Linting with
Stylelint
and browser scopebrowserslist
- Minifies images using
imagemin
and severalplugins
- Easily deployed to
Netlify
Hand-coding™ is geat for one-pagers but if you need multiple pages, modularity and components based on the atomic design methology a static site generator is a must. Jekyll is really popular but Eleventy was created to be a JavaScript alternative to Jekyll. It doesn't need exhaustive configuration
and works with lots of templating engines.
I got tired of using Sass, it appears to be the default in every project and worked with it in several projects without leveraging all of its features. That being said, long .css
files aren't gonna cut it either. I was looking for a middle ground. Since I wanted this project to heavily evolve around JavaScript I still picked postcss
and only used plugins
that made sense in this project. I try to mainly use native CSS features.
Asset (images, video's) optimization should be automated.
Progressive enhanced and inclusive.
MIT © Danny de Vries | A boilerplate for building static websites