Skip to content

Development Scripts

Alberto edited this page Nov 13, 2023 · 12 revisions

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

  • db:
  • lang:
  • storybook:
  • env:
  • vercel:

Dev & Build scripts

"dev": "bun db:generate && bun vite:dev",
"build": "bun lang:build && bun db:generate && bun vite:build",

Drizzle scripts

"db:generate": "bun with-env drizzle-kit generate:pg",
"db:push": "bun with-env drizzle-kit push:pg",
"db:studio": "bun with-env drizzle-kit studio",

Inlang internationalization scripts

"lang:build": "paraglide-js compile --project ./project.inlang.json",
"lang:studio": "bun x @inlang/cli open editor",

Storybook dev & build scripts

"storybook": "STORYBOOK=true storybook dev -p 6006 -s static",
"storybook:build": "STORYBOOK=true storybook build -s static",
"storybook:serve": "bun x serve storybook-static"

Environment sync & check script

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

Vercel build script

"vercel:build": "bun lang:build && bun db:push && bun vite:build",