Skip to content

keenanpayne/thecraftofcoffee.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Craft of Coffee

Table of Contents

  1. Tooling
  2. Development
    1. Build Tools
    2. Folder Structure

Tooling

The Craft of Coffee is built using the Eleventy static site generator. Eleventy was chosen due to its agnostic tooling decisions.

Development

Build tools

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

Folder Structure

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.

About

Source code for The Craft of Coffee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published