Skip to content

Development Scripts

Alberto edited this page Oct 26, 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 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 editor script

"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"

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": "bun db:push && bun vite:build",
Clone this wiki locally