Skip to content

Commit 8d4a672

Browse files
authored
Merge pull request #12 from CROW-B3/CROW-136-https-github-com-crow-b-3-rogue-store-migrate-rogue-store-from-pnpm-to-bun
2 parents d120c1c + 5cddea5 commit 8d4a672

File tree

13 files changed

+3002
-11520
lines changed

13 files changed

+3002
-11520
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: lts/*
13+
- uses: oven-sh/setup-bun@v2
1614
- name: Install dependencies
17-
run: npm install -g pnpm && pnpm install
15+
run: bun install
1816
- name: Install Playwright Browsers
19-
run: pnpm exec playwright install --with-deps
17+
run: bun x playwright install --with-deps
2018
- name: Run Playwright tests
21-
run: pnpm exec playwright test
19+
run: bun run test
2220
- uses: actions/upload-artifact@v4
2321
if: ${{ !cancelled() }}
2422
with:

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm exec lint-staged
1+
bunx lint-staged

.vscode/settings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"files.associations": {
3-
"wrangler.json": "jsonc"
4-
}
5-
}
2+
"files.associations": {
3+
"wrangler.json": "jsonc"
4+
}
5+
}

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
FROM node:20-alpine AS deps
2-
RUN corepack enable && corepack prepare pnpm@9 --activate
1+
FROM oven/bun:1-alpine AS deps
32
WORKDIR /app
43

5-
COPY package.json pnpm-lock.yaml ./
4+
COPY package.json bun.lock ./
65

7-
RUN pnpm install --frozen-lockfile
6+
RUN bun install --frozen-lockfile
87

9-
FROM node:20-alpine AS builder
10-
RUN corepack enable && corepack prepare pnpm@9 --activate
8+
FROM oven/bun:1-alpine AS builder
119
WORKDIR /app
1210

1311
COPY --from=deps /app/node_modules ./node_modules
1412
COPY . .
1513

16-
1714
ENV NEXT_TELEMETRY_DISABLED=1
1815
ENV DOCKER_BUILD=true
19-
RUN pnpm build
16+
RUN bun run build
2017

2118
FROM node:20-alpine AS runner
2219
WORKDIR /app

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Modern e-commerce storefront built with Next.js 15, React 19, and Tailwind CSS v
2424

2525
## Prerequisites
2626

27-
- Node.js v20+
28-
- pnpm v8+ (or npm/yarn)
27+
- Bun v1.3+
2928

3029
## Quick Start
3130

@@ -44,10 +43,10 @@ Docker Hub: [bitbybitb3/rogue-store](https://hub.docker.com/r/bitbybitb3/rogue-s
4443
# Clone and install
4544
git clone https://github.com/CROW-B3/rogue-store.git
4645
cd rogue-store
47-
pnpm install
46+
bun install
4847

4948
# Run dev server
50-
pnpm dev
49+
bun run dev
5150
```
5251

5352
Open [http://localhost:3000](http://localhost:3000) to view the app.
@@ -71,17 +70,17 @@ rogue-store/
7170

7271
```bash
7372
# Development
74-
pnpm dev # Start dev server
75-
pnpm build # Build for production
76-
pnpm lint # Run ESLint
77-
pnpm format # Format with Prettier
73+
bun run dev # Start dev server
74+
bun run build # Build for production
75+
bun run lint # Run ESLint
76+
bun run format # Format with Prettier
7877

7978
# Testing
80-
pnpm test # Run Playwright tests
81-
pnpm test:ui # Run tests in UI mode
79+
bun run test # Run Playwright tests
80+
bun run test:ui # Run tests in UI mode
8281

8382
# Deployment
84-
pnpm deploy # Deploy to Cloudflare Pages
83+
bun run deploy # Deploy to Cloudflare Pages
8584
```
8685

8786
## Deployment
@@ -90,7 +89,7 @@ pnpm deploy # Deploy to Cloudflare Pages
9089

9190
```bash
9291
wrangler login
93-
pnpm deploy
92+
bun run deploy
9493
```
9594

9695
### Vercel

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ export default function RootLayout({
3838
</body>
3939
</html>
4040
);
41-
}
41+
}

app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ export default function NotFound() {
3838
</Container>
3939
</Section>
4040
);
41-
}
41+
}

bun.lock

Lines changed: 2971 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
2+
extends: ["@commitlint/config-conventional"],
33
rules: {},
44
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "next start",
1010
"lint": "eslint .",
1111
"lint:fix": "eslint . --fix",
12-
"format": "pnpm exec prettier . --write",
12+
"format": "prettier . --write",
1313
"test": "playwright test",
1414
"test:ui": "playwright test --ui",
1515
"test:headed": "playwright test --headed",

0 commit comments

Comments
 (0)