Repository navigation
Development Commands
github-actions[bot] edited this page Nov 7, 2026
·
9 revisions
Common commands for development, testing, and maintenance. Run them from the repo root; commands marked (web) exist only in apps/web/package.json, so run them from apps/web/ or add -w @gracechords/web.
-
npm ci— install exact dependencies -
npm run dev— start Vite dev server (http://localhost:5173) -
npm run build— build toapps/web/dist/, then generate SEO pages and sitemap (requiresSUPABASE_SERVICE_ROLE_KEY) -
npm run preview— preview the production build locally (http://localhost:4173)
-
npm test— run Vitest -
npm run test:watch(web) — watch mode -
npm run test:run— single run (CI mode) -
npm run test:mvp— run PDF MVP engine layout/chord/section guards -
npm run lint— ESLint -
npm run i18n:check— web locale key parity
-
npm run tokens:swift— regenerate the committed Swift tokens forapps/studiofrompackages/tokens/native.ts -
npm run tokens:swift:check— fail if the Swift tokens have drifted (Node ≥ 22.18)
-
npm run build:bible -- --xml ./BIBLE_XML/FILE.xml(web) — ingest one XML translation intoapps/web/public/bible/<lang>/<id>/and updatepublic/bible/translations.json(production Bible JSON is served from R2)
-
npm run generate:sitemap— regenerateapps/web/dist/sitemap.xml(requiresSUPABASE_SERVICE_ROLE_KEY; normally run as part ofnpm run build)
-
npm run convert:short(web) — legacy: converts.chordprofiles underapps/web/public/songs/to short directive style. That folder no longer exists (songs live in Supabase), so it has nothing to convert.
-
ANALYZE=1 npm run build— generatesdist/stats.html(treemap of bundle chunks)
Set VITE_COMMIT_SHA=$(git rev-parse HEAD) before npm run build to embed the commit hash in the service worker cache name and bust stale caches on deploy.
-
User Guide
-
Editing & Admin
-
Developer Guide
-
Infrastructure
-
Mobile