This repository is organized as a Bun workspace monorepo for multiple websites.
| App | Path | Description |
|---|---|---|
@parke/blog |
apps/blog |
Existing Astro blog at https://blog.parke.dev |
parke-dev |
apps/portfolio |
SvelteKit portfolio site at https://parke.dev |
apps/
blog/
astro.config.mjs
public/
src/
package.json
portfolio/
svelte.config.js
src/
package.json
package.json
bun.lock
Each website owns its own framework config, source files, public assets, and package scripts. The root package.json only defines the workspace and convenience scripts.
Run commands from the repository root:
| Command | Action |
|---|---|
bun install |
Install dependencies for all workspaces |
bun run dev |
Start the blog dev server |
bun run build |
Build the blog |
bun run preview |
Preview the blog build |
bun run dev:blog |
Start only apps/blog |
bun run build:blog |
Build only apps/blog |
bun run preview:blog |
Preview only apps/blog |
bun run dev:portfolio |
Start only apps/portfolio |
bun run build:portfolio |
Build only apps/portfolio |
bun run preview:portfolio |
Preview only apps/portfolio |
You can also run commands directly inside a workspace:
bun run --cwd apps/blog dev
bun run --cwd apps/blog build
bun run --cwd apps/portfolio dev
bun run --cwd apps/portfolio build-
Create a new folder under
apps/, for exampleapps/docs. -
Add that site's own
package.json, source files, and framework config. -
Add root convenience scripts if desired, for example:
{ "scripts": { "dev:docs": "bun run --cwd apps/docs dev", "build:docs": "bun run --cwd apps/docs build" } }
Bun will automatically include any package that matches the root workspace pattern apps/*.
This repository is publish-only. Container images are built and pushed to GHCR by GitHub Actions.
Deployment and infrastructure are managed in the separate home-ops repository.
The GitHub Actions workflow (.github/workflows/docker-publish.yml) builds the blog and portfolio on every push to main and pushes versioned tags to GHCR:
- Blog:
ghcr.io/lukasparke/parke.dev:latest - Blog:
ghcr.io/lukasparke/parke.dev:run-N(immutable build number) - Portfolio:
ghcr.io/lukasparke/parke.dev-portfolio:latest - Portfolio:
ghcr.io/lukasparke/parke.dev-portfolio:run-N(immutable build number)
The run-N tags are used by the home-ops cluster for deterministic rollouts and auto-updates.
- Create a new app folder under
apps/, e.g.apps/docs. - Add its own
package.json, source files, and framework config. - Add root convenience scripts in
package.json:{ "scripts": { "dev:docs": "bun run --cwd apps/docs dev", "build:docs": "bun run --cwd apps/docs build" } } - Add a build job in
.github/workflows/docker-publish.ymlto build and push the new app's image with its ownrun-Ntags. - Add the deployment manifests in the
home-opsrepository underkubernetes/apps/projects/<name>/.