The Craft of Coffee is built using the Eleventy static site generator. Eleventy was chosen due to its agnostic tooling decisions.
Install dependencies
npm install
Build assets
Compile Sass, transpile JavaScript, optimize images, and watch for changes inside of /assets
.
npm start
Eleventy server
Spin up Eleventy server and watch for changes inside of /views
.
npm run serve
thecraftofcoffee.com/
├── views/
│ ├── _data/
│ ├── _templates/
├── _site/
├── assets/
│ ├── images/
│ ├── js/
│ └── sass/
├── utils/
The /views
folder contains all of the content for our Eleventy website. Inside of /views/_data
, and /views/_templates
we have our global data files and templates, respectively. All other files and folders inside of /views
are markdown content files.
Note: I have configured Eleventy to work with this set of folders so that content and templates are better organized and our root directory clean.
Our entire website gets compiled into static HTML inside of /_static
. This folder is excluded from the git repository.
Inside of /assets
exists all of our images, Sass and JavaScript files. All of these files get compiled into /_static/dist/
.
All utility scripts for building the website live in /utils
.