docs: update npm commands to bun in README and documentation files

- Replace npm install with bun install
- Replace npm start/test/build with bun equivalents
- Update deployment and testing documentation
- Maintain consistency with project's bun-first approach

🤖 Generated with [AI Assistant]

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-11-01 12:41:59 -07:00
parent c5dbe57d74
commit 37b22039a7
12 changed files with 107 additions and 106 deletions

View File

@@ -1,5 +1,5 @@
# Multi-stage build for ARM compatibility (Raspberry Pi)
FROM node:18-alpine AS builder
FROM oven/bun:1-alpine AS builder
WORKDIR /app
@@ -7,13 +7,13 @@ WORKDIR /app
COPY package*.json ./
# Install dependencies
RUN npm ci
RUN bun install --frozen-lockfile
# Copy source code
COPY . .
# Build production bundle
RUN npm run build
RUN bun run build
# --- Production stage with nginx ---
FROM nginx:alpine

View File

@@ -6,7 +6,7 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
In the project directory, you can run:
### `npm start`
### `bun start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
@@ -14,12 +14,12 @@ Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### `npm test`
### `bun test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
### `bun run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -29,7 +29,7 @@ Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
### `bun run eject`
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
@@ -65,6 +65,6 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/a
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
### `bun run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)