An opinionated boilerplate for new projects built with Eleventy.
- This project uses Eleventy as a static site generator.
- Templating uses Nunjucks.
- Reusable components are built using shortcodes.
- Styles are written in vanilla CSS and inlined for performance. (Note: it is your responsibility to autoprefix the CSS as needed).
- The main CSS file can be found at
_includes/app.css
.
- The main CSS file can be found at
- Javascript is minified and inlined for performance. (Note: write browser compatible JS).
- The main JS file can be found at
_includes/app.js
.
- The main JS file can be found at
$ git clone git@github.com:alexcarpenter/eleventy-boilerplate.git
$ cd eleventy-boilerplate
$ npm install
Command | Description |
---|---|
npm start |
Start a development server and watch for updates |
npm run build |
Build templates, data, CSS, and JS for production envrioment |
MIT