This site is built with Eleventy and Netlify using the following stack:
- Nunjucks (Template language used in Eleventy)
- Contenful (Headless CMS)
- Tailwind CSS (Utility-first CSS framework)
- TypeScript
- Webpack (Module bundler)
npm install
Use the Netlify CLI to inject environment variables stored against the Netlify site — no local .env
file needed!
netlify dev
CONTENTFUL_ACCESS_TOKEN
CONTENTFUL_ENVIRONMENT
CONTENTFUL_SPACE_ID
FAUNADB_ADMIN_SECRET
FAUNADB_SERVER_SECRET
GCM_API_KEY
VAPID_PRIVATE_KEY
VAPID_PUBLIC_KEY
npm run webpack:dev
: Compiles Tailwind CSS and Typescript in development mode and listens for changes to CSS and TypeScript filesnpm run eleventy:dev
: Spins up local environment of eleventy and listens for changes to Nunjucks files and other assetsnpm run dev
: Concurrently runswebpack:dev
andeleventy:dev
to spin up local environmentnetlify dev
: Spins up local Netlify dev environment to allow the use of Netlify features. Netlify CLI is needed to run this command.
npm run webpack:prod
: Compiles Tailwind CSS and Typescript ready for productionnpm run eleventy:prod
: Compiles Nunjucks files ready for productionnpm run build
: Command used in Netlify to runwebpack:prod
andeleventy:prod