Skip to content

Development Scripts

Alberto edited this page Sep 8, 2023 · 12 revisions

This is a list of all the available pnpm scripts, they all have prefixes indicating their category (excluding the dev, build and lint scripts):

  • db:
  • lang:
  • storybook:
  • env:
  • vercel:
  • vite: - not listed

Dev & Build scripts

"dev": "pnpm db:generate && pnpm vite:dev",
"build": "pnpm db:generate && pnpm vite:build",

Prisma scripts

"db:generate": "pnpm with-env prisma generate",
"db:push": "pnpm with-env prisma db push",
"db:migrate": "pnpm with-env prisma migrate dev",
"db:deploy": "pnpm with-env prisma migrate deploy",
"db:studio": "pnpm with-env prisma studio",

Inlang editor script

"lang:studio": "pnpm dlx @inlang/cli open editor",

Storybook dev & build scripts

"storybook": "STORYBOOK=true storybook dev -p 6006",
"storybook:build": "STORYBOOK=true storybook build"

Prettier scripts

"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",

Environment sync & check script

"env:sync": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",

Vercel build script

"vercel:build": "pnpm db:generate && pnpm db:deploy && pnpm vite:build",
Clone this wiki locally