🎧 The source for my personal site. Built using 11ty (and other tools). https://www.coryd.dev/colophon
Find a file
2025-06-18 12:18:02 -07:00
.husky fix(pre-commit): add formatted sql files 2025-06-18 11:37:12 -07:00
api chore(*.php): use pint for php formatting 2025-06-14 17:42:30 -07:00
app fix(Utils/tags.php): tag sizing + spacing 2025-06-16 20:23:58 -07:00
cli chore(cli): remove version from prompt; remove navidrome from menus for consistency 2025-06-18 12:18:02 -07:00
config feat(*.liquid): apply prettier to liquid templates 2025-06-16 14:41:29 -07:00
queries fix(search): ensure results are deduplicated 2025-06-18 11:32:07 -07:00
scripts chore(*): use prettier for formatting 2025-06-14 17:42:23 -07:00
src fix(search): ensure results are deduplicated 2025-06-18 11:32:07 -07:00
.dockerignore chore(Dockerfile): build and deploy via Docker, remove Nixpacks 2025-04-28 11:29:16 -07:00
.editorconfig feat: initial commit 2025-03-27 17:09:59 -07:00
.gitignore feat(cli): add site cli to run scripts + handle media 2025-06-05 20:20:58 -07:00
.markdownlint.json chore(*): use prettier for formatting 2025-06-14 17:42:23 -07:00
.markdownlintignore chore(*.md): lint markdown command + add to lint-staged 2025-06-14 17:42:30 -07:00
.npmrc feat: initial commit 2025-03-27 17:09:59 -07:00
.nvmrc feat: initial commit 2025-03-27 17:09:59 -07:00
.prettierignore feat(*.liquid): apply prettier to liquid templates 2025-06-16 14:41:29 -07:00
.prettierrc feat(*.liquid): apply prettier to liquid templates 2025-06-16 14:41:29 -07:00
bootstrap.php chore(bootstrap.php): separately minify php when files are requested 2025-06-15 11:32:01 -07:00
composer.json chore(bootstrap.php): separately minify php when files are requested 2025-06-15 11:32:01 -07:00
composer.lock chore(bootstrap.php): separately minify php when files are requested 2025-06-15 11:32:01 -07:00
Dockerfile chore(eleventy.config.js): remove old passthrough statement 2025-06-14 07:20:51 -07:00
eleventy.config.js feat(*.liquid): apply prettier to liquid templates 2025-06-16 14:41:29 -07:00
package-lock.json fix(pre-commit): add formatted sql files 2025-06-18 11:37:12 -07:00
package.json fix(pre-commit): add formatted sql files 2025-06-18 11:37:12 -07:00
pint.json chore(*.php): use pint for php formatting 2025-06-14 17:42:30 -07:00
README.md chore(README): add format and lint commands 2025-06-14 18:56:28 -07:00

coryd.dev

This is the source for my personal site built using 11ty, PHP and a number of other tools.

Local dev setup

npm run setup

This will generate the required .env file, install dependencies and configure the CLI.

Once the CLI is installed, it is invoked by running coryd.

Remote dev setup

npm run setup:dev

This runs setup and generates apache configs, commands and php extensions to install and enable on the server.

Local dev workflow

  1. coryd run start
  2. Open http://localhost:8080

This will run eleventy --watch and the PHP cli concurrently, allowing for an environment similar to production where both static and dynamic pages are available.

CLI

  • coryd init: begins a series of prompts to populate the config used by cli download.
  • coryd run: presents a list of commands available to run (described below).
  • coryd tasks: common tasks performed using the Directus API.
  • coryd jobs: scripts and cron jobs that can be triggered manually.
  • coryd run [command]: runs the specified command immediately.
  • coryd download: presents prompts to download images, name them consistently and place them in the directories specified when running cli init.

Commands

  • coryd run start: primary dev command that runs watch and php concurrently.
  • coryd run watch: watch and update when files change without running the web server.
  • coryd run php: starts a PHP server for local development.
  • coryd run build: builds static site output.
  • coryd run clean: removes the dist and .cache folders.
  • coryd run format: formats JavaScript, JSON, CSS and Markdown files using Prettier, PHP files using Pint and SQL files using sql-formatter.
  • coryd run format:sql: formats SQL files using sql-formatter.
  • coryd run lint:md: lints markdown files using Markdown lint.
  • coryd run update: checks for dependency updates and updates 11ty.

Required environment variables

POSTGREST_URL              # client + server + build
POSTGREST_API_KEY          # client + server + build
MASTODON_ACCESS_TOKEN      # server
MASTODON_SYNDICATION_TOKEN # server
FORWARDEMAIL_API_KEY       # server
BOOK_IMPORT_TOKEN          # server
WATCHING_IMPORT_TOKEN      # server
TMDB_API_KEY               # server
NAVIDROME_SCROBBLE_TOKEN   # server
NAVIDROME_API_URL          # server
NAVIDROME_API_TOKEN        # server
ARTIST_IMPORT_TOKEN        # server
COOLIFY_REBUILD_TOKEN      # server
COOLIFY_REBUILD_URL        # server
DIRECTUS_API_TOKEN         # cli
GIT_REPO                   # build
SERVER_URL                 # build