From c5dbe57d740e1de53957bed668730438dc03f044 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Sat, 1 Nov 2025 12:37:56 -0700 Subject: [PATCH] docs: replace npm commands with bun in AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- AGENTS.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f44310a..498f89d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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