-
-
Notifications
You must be signed in to change notification settings - Fork 1
Scripts
Adrian Darian edited this page Oct 19, 2025
·
1 revision
These scripts are currently available and working:
# Development
bun dev # Start development server (Vite)
bun build # Build for production
bun preview # Preview production build
# Code Quality
bun lint # Run Biome linter
bun format # Format code with Biome
bun check # Run linter + formatter with auto-fix
bun type-check # TypeScript type checkingThese scripts will be added in later phases:
# Unit/Integration Testing (Vitest)
bun test # Run tests
bun test:ui # Run tests with UI
bun test:watch # Run tests in watch mode
bun test:coverage # Generate coverage report
# E2E Testing (Playwright)
bun test:e2e # Run E2E tests
bun test:e2e:ui # Run E2E tests with UI# Component Documentation
bun storybook # Start Storybook dev server
bun build-storybook # Build Storybook for production# Git Hooks (Husky)
bun prepare # Install Husky git hooks# Start developing
bun dev
# Before committing
bun check # Auto-fix linting and formatting issues
bun type-check # Check for TypeScript errors
# Build for production
bun build-
Start dev server:
bun dev - Make changes to your code
-
Check your code:
bun check(auto-fixes issues) -
Verify types:
bun type-check -
Build to test:
bun build - Commit your changes
- Starts Vite development server
- Hot Module Replacement (HMR) enabled
- Typically runs on http://localhost:5173
- Runs TypeScript compiler (
tsc -b) - Builds optimized production bundle with Vite
- Output in
dist/folder
- Serves production build locally
- Use to test production build before deployment
- Runs Biome linter
- Shows errors and warnings
- Does not auto-fix
- Formats all files with Biome
- Auto-fixes formatting issues
- Runs both linter and formatter
- Auto-fixes all fixable issues
- Recommended before committing
- Runs TypeScript compiler without emitting files
- Catches type errors
- Faster than full build
When adding new scripts, update this file and the main README.md.
{
"scripts": {
"new-script": "command here"
}
}Then document it here with:
- What it does
- When to use it
- Any prerequisites
Note: This file will be updated as we progress through the development phases.