Skip to content

AndrewAsquith/eleventy-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eleventy-base

A basic starter project with my preferences for Eleventy (11ty.io)

To be successful, the following is required:

  1. A .env file with ELEVENTY_ENV defined (or defined from the shell)
  • "production" indicates the production environment
  • any other value is treated as a development environment
  1. img folder in src or redefine the path in _gulp/config.json
  2. js folder in src or redefine the path in _gulp/config.json

The gulp script will:

  1. Use Eleventy to build the site in site/ _gulp/generate.js
  • If the environment is set to production resulting html files are minified _11ty/transforms/html-minify.js
  • Filters for things like dates are included in the _11ty/filters folder
  1. Run sass on site.scss in the configured sass folder _gulp/styles.js
  • If the environment is set to production files are minified
  • If the environment is set to development sourcemaps are created
  1. Concatenate all javascript files into a single site.js in the configured scripts folder _gulp/scripts.js
  • If the environment is set to production files are minified
  • If the environment is set to development sourcemaps are created
  1. Run imagemin on images in the configured images folder _gulp/images.js

About

Eleventy Starter Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors