This guide explains the core local commands and what they are for.
It is intentionally short.
Starts the development server.
Use it during active work when you want:
- fast refresh
- local iteration
- immediate visual feedback
This is the best command for day-to-day editing.
Creates the production build in dist/.
Use it when you want to confirm that the app still compiles as a real production bundle.
Serves the already built production output locally.
Use it when you want to check behavior closer to the final deployed result.
This is especially useful for:
- asset loading
- network checks
- production-like rendering
- verifying that a dev-only behavior is not misleading
Checks whether files follow the project's Prettier formatting rules.
Checks code quality, React usage, accessibility basics, and unused imports.
Runs the lightweight app render test.
Runs the minimal Playwright browser smoke tests.
This is useful after changes that affect:
- navigation
- interactions
- mobile menu behavior
- runtime browser behavior
Runs the basic pre-ship verification chain:
- format check
- lint
- smoke test
- production build
Builds the app and generates a bundle visualization report in:
_docs/bundle-analysis-report.html
Use this after bigger changes such as:
- adding a new library
- expanding motion-heavy sections
- importing heavier runtime assets
This command is for analysis, not daily development.
For content or UI work:
npm run dev- review the result visually
- run
npm run check
For browser-behavior changes:
npm run dev- test the interaction
- run
npm run test:e2e - run
npm run check
For performance or bundle questions:
npm run buildnpm run previewnpm run analyze:bundle
If you need stable project guidance, stay in docs/.
If you need working notes, archived reports, or execution plans, use _docs/.