Replace env var parsing with Go's flag package: - --watch (default: ../express) - --workers (default: 1) - --base-port (default: 3000) - --port (default: 8080) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
-
Update check script:
- shellcheck on shell scripts
go veton go filesgolangci-linton go files- Run
go fmton all .go files - Eventually, run unit tests
-
Reimplement fixup.sh
- run shfmt on all shell scripts (and the files they
source) - Run
go fmton all .go files - Run
prettierbiome on all .ts files and maybe others
- run shfmt on all shell scripts (and the files they
-
Adapt master program so that it reads configuration from command line args instead of from environment variables
- Should have sane defaults
- Adding new arguments should be easy and obvious
-
Add wrapper script to run main program (so that various assumptions related to relative paths are safer)
-
Add unit tests all over the place.
- ⚠️ Huge task - needs breakdown before starting
-
flesh out the
sync.shscript- update framework-managed node
- update framework-managed pnpm
- update pnpm-managed deps
- rebuild golang programs
-
If the number of workers is large, then there is a long lapse between when you change a file and when the server responds
- One solution: start and stop workers serially: stop one, restart it with new code; repeat
- Slow start them: only start a few at first