Skip to content

Commit fda4508

Browse files
committed
Migrate project to Bun
1 parent f42443e commit fda4508

File tree

7 files changed

+168
-1143
lines changed

7 files changed

+168
-1143
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Setup Node
25-
uses: actions/setup-node@v4
24+
- name: Setup Bun
25+
uses: oven-sh/setup-bun@v2
2626
with:
27-
node-version: 22
28-
cache: npm
27+
bun-version: 1.3.10
2928

3029
- name: Install dependencies
31-
run: npm ci
30+
run: bun ci
3231

3332
- name: Build site
34-
run: npm run build
33+
run: bun run build
3534

3635
- name: Upload Pages artifact
3736
uses: actions/upload-pages-artifact@v3

AGENTS.MD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
- Static assets: `public/`
99

1010
## Local workflow
11-
- Install: `npm install`
12-
- Dev server: `npm run dev`
13-
- Type check + build: `npm run build`
14-
- Preview build: `npm run preview`
11+
- Install: `bun install`
12+
- Dev server: `bun run dev`
13+
- Type check + build: `bun run build`
14+
- Preview build: `bun run preview`
1515

1616
## Deployment
1717
- GitHub Pages deploy is automated by `.github/workflows/deploy-pages.yml`
@@ -23,8 +23,8 @@
2323
- Keep website responsive on desktop/mobile
2424
- Preserve existing Discord presence + writeups/posts behavior unless asked to change it
2525
- Prefer updating source files in `src/` and `public/`, not generated output in `dist/`
26+
- Create a git commit after completing each requested change
2627

2728
## Validation
28-
- Run `npx tsc --noEmit` for quick safety check
29-
- If build tooling is available, run `npm run build`
30-
29+
- Run `bun run typecheck` for quick safety check
30+
- If build tooling is available, run `bun run build`

CLAUDE.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
- Keep Discord presence integration working (Lanyard websocket flow in `src/main.ts`)
1717
- Keep posts loading from `public/writeups/index.json`
1818
- Avoid changing deployment workflow unless explicitly requested
19+
- Create a git commit after completing each requested change
1920

2021
## Commands
21-
- `npm run dev`
22-
- `npx tsc --noEmit`
23-
- `npm run build`
22+
- `bun run dev`
23+
- `bun run typecheck`
24+
- `bun run build`
2425

2526
## Commit style
2627
- Use concise imperative commit messages
2728
- Commit only files related to the requested change
28-

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ Personal website source for [marcopisco.com](https://marcopisco.com), built with
2525
## Local Development
2626

2727
```bash
28-
npm install
29-
npm run dev
28+
bun install
29+
bun run dev
3030
```
3131

3232
Default dev URL: `http://localhost:5173`
3333

3434
## Build and Preview
3535

3636
```bash
37-
npm run build
38-
npm run preview
37+
bun run typecheck
38+
bun run build
39+
bun run preview
3940
```
4041

4142
The production build is generated in `dist/`.
@@ -64,8 +65,8 @@ Example `index.json` item:
6465
Deployment is fully automated by [`.github/workflows/deploy-pages.yml`](.github/workflows/deploy-pages.yml):
6566

6667
1. Trigger on push to `main`
67-
2. Install dependencies with `npm ci`
68-
3. Build with `npm run build`
68+
2. Install dependencies with `bun ci`
69+
3. Build with `bun run build`
6970
4. Upload `dist/` artifact
7071
5. Deploy to GitHub Pages
7172

bun.lock

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

0 commit comments

Comments
 (0)