veganprestwich.co.uk - an eleventy site, built with nix, hosted on nixos
https://veganprestwich.co.uk
_data | ||
_deleted_places | ||
_includes | ||
bin | ||
pages | ||
place | ||
static | ||
style | ||
tags | ||
.build.yml | ||
.eleventy.js | ||
.eleventyignore | ||
.gitignore | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
sitemap.liquid |
VeganPrestwich.co.uk
We want to catalog the best places for vegan food and vegan-friendly shops in Prestwich.
Feel free to make a pull request, or join the discussion on Facebook
Building This Site
This site is built with Eleventy and deployed using Nix / Nixos, using Sourcehut's build engine, then deployed to Neocities using their CLI.
There are three scripts inside /bin
- build
, serve
and upgrade
. They each use nix-shell
to fetch the tools they need.
./bin/build
- deletes
_site
folder - creates
_site/style
- compiles the SCSS in
style
to CSS in_site/style
- minifies and adds vendor prefixes to the CSS using
lightningcss
- builds the site to HTML using Eleventy, into
_site
- minifies the HTML using
html-minifier
- sets
NEOCITIES_API_KEY
from a Sourcehut secret - pushes the whole site to Neocities
./bin/serve
- deletes
_site
folder - creates
_site/style
- compiles the SCSS in
style
to CSS in_site/style
- builds the site to HTML using Eleventy, into
_site
- serves it up on http://localhost:8080
./bin/upgrade
- upgrades the
pnpm-lock.yaml
file to the latest version of Eleventy