docs: replace npm commands with bun in AGENTS.md

Updated all npm command references to use bun for better performance and consistency with the frontend's existing bun.lock file. This includes test commands, build commands, and linter commands.

🤖 Generated with AI Assistant

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-11-01 12:37:56 -07:00
parent 199727c2a6
commit c5dbe57d74

View File

@@ -24,10 +24,10 @@ After implementing any feature, fix, or update, you MUST:
1. **Build and test** the changes: 1. **Build and test** the changes:
```bash ```bash
# Backend # Backend
cd backend && npm test cd backend && bun test
# Frontend # Frontend
cd frontend && npm run build cd frontend && bun run build
``` ```
2. **Create a git commit** with a descriptive message: 2. **Create a git commit** with a descriptive message:
@@ -68,15 +68,15 @@ This ensures:
## Commands ## Commands
### Backend (from `/backend`) ### Backend (from `/backend`)
- `npm test` - Run all tests - `bun test` - Run all tests
- `npx eslint .` - Run linter - `bunx eslint .` - Run linter
- `node server.js` - Start development server - `node server.js` - Start development server
### Frontend (from `/frontend`) ### Frontend (from `/frontend`)
- `npm test` - Run all tests in watch mode - `bun test` - Run all tests in watch mode
- `npm test -- --testNamePattern="test name"` - Run single test - `bun test -- --testNamePattern="test name"` - Run single test
- `npm run build` - Production build - `bun run build` - Production build
- `npm start` - Start development server - `bun start` - Start development server
## Code Style ## Code Style
@@ -198,16 +198,16 @@ Comprehensive test infrastructure is in place for both backend and frontend.
Backend: Backend:
```bash ```bash
cd backend cd backend
npm test # Run all tests bun test # Run all tests
npm run test:coverage # Run with coverage report bun run test:coverage # Run with coverage report
npm run test:watch # Run in watch mode bun run test:watch # Run in watch mode
``` ```
Frontend: Frontend:
```bash ```bash
cd frontend cd frontend
npm test # Run in watch mode bun test # Run in watch mode
npm run test:coverage # Run with coverage report bun run test:coverage # Run with coverage report
``` ```
### Test Coverage ### Test Coverage