Another software engineer with a blog
Find a file
thomasabishop 2d900267c2
Some checks failed
Deploy Blog / deploy (push) Failing after 22s
fix: forgejo deploy - please work
2025-07-08 17:36:26 +01:00
.forgejo/workflows fix: forgejo deploy - please work 2025-07-08 17:36:26 +01:00
posts chore: initial commit 2025-07-07 17:08:27 +01:00
public chore: initial commit 2025-07-07 17:08:27 +01:00
scripts chore: initial commit 2025-07-07 17:08:27 +01:00
src chore: initial commit 2025-07-07 17:08:27 +01:00
.gitignore chore: initial commit 2025-07-07 17:08:27 +01:00
.prettierrc chore: initial commit 2025-07-07 17:08:27 +01:00
components.json chore: initial commit 2025-07-07 17:08:27 +01:00
eslint.config.js chore: initial commit 2025-07-07 17:08:27 +01:00
index.html chore: initial commit 2025-07-07 17:08:27 +01:00
package-lock.json chore: initial commit 2025-07-07 17:08:27 +01:00
package.json chore: initial commit 2025-07-07 17:08:27 +01:00
README.md chore: initial commit 2025-07-07 17:08:27 +01:00
tsconfig.app.json chore: initial commit 2025-07-07 17:08:27 +01:00
tsconfig.json chore: initial commit 2025-07-07 17:08:27 +01:00
tsconfig.node.json chore: initial commit 2025-07-07 17:08:27 +01:00
vite.config.ts chore: initial commit 2025-07-07 17:08:27 +01:00

Systems Obscure

Another software engineer with a blog

Screenshot of blog

Build

npm run build

This runs vite build using speedy web compiler for the transpilation of TSX to JSX. I am using TypeScript so that I can use the shadcn component library however I don't actually care about types in this project and all my components are written as JSX. SWC transpiles very quickly without throwing TS warning and errors.

I still use Vite's native esbuild for HMR transpilation in development.

Scripts

Generate post index

npm run build:posts

This runs scripts/generate-post-index.js which reads all raw Markdown posts in /posts and parses the body content and YAML front-matter. It then writes this data to public/post-index.json which is read by the React application at runtime.