Skip to content

andreas-mausch/eleventy-sample

Repository files navigation

This is a sample 11ty project to see if it fits my needs.

Features

Most of these are pretty basic features which would be on my wishlist for a perfect static site generator.

I was shocked (once again) how fiddly it is to setup a project with just the normal, modern technologies.

There is one blog post for each feature to demonstrate it.

Development

Install dependencies

npm install

Run local development server

npm run dev

Production build

npm run build

Linting

npm run lint

Type checking (via tsc)

npm run check

Pre-commit hook

Linting and type checking is also done by the npm package pre-commit. It does this checks when a git commit is triggered.

You can bypass the checks by passing --no-verify to git commit. See here.