The Makefile has grown organically. After #43 lands it's also implicitly assuming pixi is installed, which is the right call but worth handling gracefully. Some polish ideas worth considering — none urgent, none required.
Default behavior
Pre-flight checks
Missing targets
Polish
Out of scope
- Switching away from
make to just / task / similar runners. The point is to polish what's there, not replace it.
Related
The Makefile has grown organically. After #43 lands it's also implicitly assuming pixi is installed, which is the right call but worth handling gracefully. Some polish ideas worth considering — none urgent, none required.
Default behavior
makewith no args currently does nothing useful. Default tomake help.helptarget that lists every other target with a one-line description. The common pattern is to put## descriptioncomments next to each target and parse them withawk:Pre-flight checks
pixiis on PATH. If not, print a friendly install pointer and exit cleanly rather than letting every target fail withpixi: command not found.make doctortarget that prints resolved versions (pixi, Node, npm, astro) — useful when something's wedged.Missing targets
clean— removedist/,.astro/,node_modules/,.pixi/(or some subset). Useful when state is corrupted.openor an extension ofdevthat also openshttp://localhost:4321in the browser (openon macOS,xdg-openon Linux).Polish
==> dev: starting Astro dev server on http://localhost:4321) so the output isn't just a wall of npm.make posterror message could show acceptedTYPEvalues (note | arch) instead of only naming the flag.tput setaffor the banner lines — not a full prompt UI, just stand-out section headers.Out of scope
maketojust/task/ similar runners. The point is to polish what's there, not replace it.Related