Scripts

Root and app scripts you actually run while developing a Taman project.

All commands are from the monorepo root unless noted. nx project names: web, api, db-pg.

Everyday

CommandWhat it runs
pnpm dev:webnx run web:dev → vite --mode development (port from VITE_PORT)
pnpm dev:apinx run api:dev → nitro dev on 8788
pnpm db-pg:migrate:devdrizzle-kit push with packages/server/db-pg/.env
pnpm db-pg:migrate:uatdrizzle-kit migrate with .env.uat
pnpm db-pg:migrate:proddrizzle-kit migrate with .env.prod
pnpm db:generatedrizzle-kit generate → SQL under packages/server/db-pg/migrations
pnpm db:generate:authbetter-auth CLI schema dump (see Database)
pnpm dev:db-pg:studioDrizzle Studio (db-pg:studio:dev)
pnpm nx run api:seedSeed admin (bun run — Bun is undeclared)
pnpm nx run api:seed:todosSeed todos (tsx)

Build and quality

CommandWhat it runs
pnpm buildnx run-many -t build (8 GB heap)
pnpm build:analyzeBundle analyzer on web
pnpm checkcircular deps, depcheck, typecheck, cspell
pnpm check:typenx run-many -t typecheck
pnpm lint / pnpm formatESLint (@vinicunca/eslint-config)
pnpm testvitest (watch)
pnpm test:unitvitest run --dom
pnpm test:corevitest packages
pnpm --filter @taman/web test:e2ePlaywright (from apps/web)

Web package scripts

From apps/web/package.json: dev, build, build:analyze, preview, typecheck, test:e2e, test:e2e-ui, test:e2e-codegen.

Housekeeping

CommandWhat it runs
pnpm bootstrappnpm install
pnpm cleanscripts/clean.mjs
pnpm reinstallclean lockfile + install
pnpm commitczg (commitizen + commitlint scopes)
pnpm catalogpnpm dlx codemod pnpm/catalog

postinstall runs stub on packages that define it (builds published packages in the source repo). preinstall is only-allow pnpm. prepare installs git hooks via scripts/prepare-hooks.mjs.

Removed on generate

create-taman deletes these root scripts from the generated package.json: build:docker, check:api-packages, publint. They remain in the source repository.