Devlog #2 of Comment Box Generator
Comment Box Generator is a small site that lets you generate comment boxes with text inside for various programming languages:
# ======================================
# = like so =
# ======================================
(which is centred when you are using a monospace font)
In this devlog I’ve rewritten the “backend” in Bun so in package.json there are several scripts for various purposes:
- Build: just
bun run build.jswhich minifies whats insrc/and puts it out todist/ - Deploy: Builds and hosts the project
- VPS: This runs
vps.shwhich is primarily just meant for me to run on my VPS (hosted at https://commentboxgenerator.lemonsite.uk/ ). It kills whatever process is on the port used by CBG (always 3054), builds the project and deploys. It usesnohupto log to a file and to run in the background. It then restarts nginx. - Dev: This just runs a development server: unminified and with hot reload straight from
src/
On the frontend I’ve added the option to use different languages’ comment syntax, to use single line or multiline comments, and to change what symbol is used for the box.
Things that are coming soon:
- Styling (as you can tell not much attention has been paid to that yet)
- Forcing multiline for languages that don’t support single line comments like HTML
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.