chore: set up dev scripts #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "setup-dev-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updates to Preview Branch (setup-dev-scripts) ↗︎
Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.
View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.
AGENTS.md: In the "Database" section you listnpm run db:diff, but the updatedpackage.jsondoes not include adb:diffscript — onlydb:typesanddb:resetwere added. Please either add adb:diffscript topackage.jsonor remove/update the reference inAGENTS.mdso docs and scripts stay consistent.package.json: The newstart:backend/stop:backendscripts run the Supabase CLI directly. These CLI commands require the Supabase CLI to be installed or available vianpx. Consider one of the following to avoid unexpected failures for contributors:CONTRIBUTING.md(or AGENTS.md) thatsupabaseCLI must be installed globally or show usingnpx supabase startin the script.npx(e.g.npx supabase start) so they work without global install.Prefer
npxfor better DX unless there's a reason to require global install.Changes Requested
Please make the following changes before I approve this PR:
CONTRIBUTING.md(currentlynpx run supbase db -f <migration-name>). Replace with a correct example and prefernpx supabase ...usage.package.jsonCLI-invoking scripts robust for contributors by usingnpx(or document global CLI requirements). Add the missingdb:diffscript referenced inAGENTS.mdand tests recommendations.AGENTS.mdandCONTRIBUTING.mdreferences to scripts matchpackage.jsonafter changes (remove any stale references).Summary of Changes
AGENTS.md: Reworkedsrc/layout, addedsupabase/folder layout, replaced generic dev commands withstart:frontend/start:backend/db:types/db:resetnotes.CONTRIBUTING.md: Added prerequisites, setup steps, and common commands for local dev (Supabase/Playwright related commands added).package.json: Replaceddev/build/testscripts withstart:frontend/start:backend/stop:backend/build:frontend, addeddb:typesanddb:reset, changedtest:e2etoplaywright test.specs/000-mvp.md: Marked local dev setup checklist items complete.Overall Feedback
Negative: There are a few doc/script mismatches and at least one broken CLI command that will confuse contributors and cause local workflow failures if not fixed. The
package.jsonscripts call CLIs directly (withoutnpx) which will break for users who don't have those CLIs globally installed. The Supabase migration command inCONTRIBUTING.mdis incorrect and must be updated.Positive: Solid work standardizing the local developer workflow and documenting the commands — the new scripts and CONTRIBUTING updates will make onboarding clearer. The repo layout and AGENTS.md improvements improve discoverability and DX. Nice job! 🎉
@Pertempto — please address the three requested fixes and ping me; I'll re-review quickly.
package.json(scripts): Please make CLI scripts robust by usingnpxand add the missingdb:diffscript. Suggested replacements for thescriptsentries (you can paste these intopackage.json):"start:frontend": "astro dev",
"start:backend": "npx supabase start",
"stop:backend": "npx supabase stop",
"build:frontend": "astro build",
"test:e2e": "npx playwright test",
"db:types": "npx supabase gen types typescript --local > src/lib/database.types.ts",
"db:diff": "npx supabase db diff",
"db:reset": "npx supabase db reset"
This avoids requiring global CLI installs and satisfies the
AGENTS.mdreference todb:diff. @Pertempto — are you okay with switching tonpxhere?