An opinionated boilerplate for new projects built with Eleventy.
The eleventy-boilerplate is an opinionated boilerplate that is designed to be used for new projects built with Eleventy, a static site generator. It includes various features and components that aim to enhance the development process. This boilerplate utilizes Nunjucks for templating, shortcodes for reusable components, vanilla CSS for styles, and minified and inlined JavaScript for better performance. The main CSS file can be found at _includes/app.css, and the main JS file can be found at _includes/app.js. To install and use the boilerplate, you can use the provided npm commands.
To install and set up the eleventy-boilerplate, you can follow these steps:
Clone the repository or download the source files.
Navigate to the project directory in the terminal.
Run the following command to install the dependencies:
npm install
To start a development server and watch for updates, use the following command:
npm start
To build templates, data, CSS, and JS for the production environment, use the following command:
npm run build
This will generate the necessary files and assets for deployment.
The eleventy-boilerplate is a comprehensive starting point for developing projects with Eleventy, providing essential features and components to streamline the development process. With its use of Eleventy, Nunjucks templating, reusable components with shortcodes, and performance-optimized CSS and JavaScript, this boilerplate offers a solid foundation for creating static websites efficiently. The provided installation guide makes it easy to set up and start using the boilerplate for your own projects.