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

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