Skip to content

Commit 53d99ef

Browse files
committed
Revert "Back to Bun (it now supports arm builds)"
This reverts commit 0174b88.
1 parent c967624 commit 53d99ef

10 files changed

Lines changed: 27978 additions & 1563 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- uses: oven-sh/setup-bun@v2
25+
- uses: actions/setup-node@v4
2626
with:
27-
bun-version: 1
27+
node-version: 24
2828

2929
- uses: actions-rust-lang/setup-rust-toolchain@v1
3030

@@ -34,31 +34,31 @@ jobs:
3434
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
3535
3636
- name: Install UI dependencies
37-
run: bun ci
37+
run: npm ci
3838

3939
- name: Install Playwright dependencies
4040
run: npx playwright install chromium --with-deps
4141

4242
- name: 'Test: Format'
43-
run: 'bun run test:format'
43+
run: 'npm run test:format'
4444

4545
- name: 'Test: Lint'
46-
run: 'bun run test:lint'
46+
run: 'npm run test:lint'
4747

4848
- name: 'Test: Unit'
49-
run: 'bun run test:unit'
49+
run: 'npm run test:unit'
5050

5151
- name: 'Test: E2E'
52-
run: 'bun run test:ui'
52+
run: 'npm run test:ui'
5353

5454
- name: 'Generate translations'
55-
run: bun run gen:translations
55+
run: npm run gen:translations
5656

5757
- name: Build application
58-
run: bun run build
58+
run: npm run build
5959

6060
- name: 'Test: Rust (+ Generate Types)'
61-
run: bun run gen:types
61+
run: npm run gen:types
6262

6363
# Check one of the command above did not generate any unexpected artifacts
6464
# (like types generation)
@@ -96,9 +96,9 @@ jobs:
9696
steps:
9797
- uses: actions/checkout@v4
9898

99-
- uses: oven-sh/setup-bun@v2
99+
- uses: actions/setup-node@v4
100100
with:
101-
bun-version: 1
101+
node-version: 24
102102

103103
- name: Install Rust stable
104104
uses: dtolnay/rust-toolchain@stable
@@ -121,7 +121,7 @@ jobs:
121121
flatpak install flathub -y org.flatpak.Builder
122122
123123
- name: Install frontend dependencies
124-
run: bun ci
124+
run: npm ci
125125

126126
- uses: tauri-apps/tauri-action@v0
127127
env:

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
install-strategy=nested
21
save-exact=true
32
strict-peer-deps=true
43
fund=false

AGENTS.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Museeks is a music player desktop app built on top of Tauri. It focuses on clean
1818
- Formatting: Oxfmt
1919
- Unit tests: Vitest
2020
- E2E tests: [Vitest Browser Mode](https://vitest.dev/guide/browser/) (w/ Playwright)
21-
- Infra Runtime: Bun (not Node.js!)
2221
- Bundler: Vite
22+
- Infra Runtime: Node.js
2323

2424
- **Backend**
2525
- Language: Rust · Desktop integration: Tauri v2
@@ -30,22 +30,22 @@ Museeks is a music player desktop app built on top of Tauri. It focuses on clean
3030
## Development Commands
3131

3232
```bash
33-
bun ci # Install dependencies
34-
bun run tauri dev # Start dev (Vite + Tauri with hot reload)
35-
bun run tauri build # Build distributable binaries for the current platform
36-
bun run build # Front-end code build only
37-
bun run test:format # Check formatting (Oxfmt)
38-
bun run test:format:fix # Auto-fix formatting (Oxfmt)
39-
bun run test:lint # Lint (Oxlint), also type-checks TypeScript
40-
bun run test:unit # Run unit tests (Vitest)
41-
bun run test:ui # E2E tests (Vitest Browser + Playwright)
33+
npm ci # Install dependencies
34+
npm run tauri dev # Start dev (Vite + Tauri with hot reload)
35+
npm run tauri build # Build distributable binaries for the current platform
36+
npm run build # Front-end code build only
37+
npm run test:format # Check formatting (Oxfmt)
38+
npm run test:format:fix # Auto-fix formatting (Oxfmt)
39+
npm run test:lint # Lint (Oxlint), also type-checks TypeScript
40+
npm run test:unit # Run unit tests (Vitest)
41+
npm run test:ui # E2E tests (Vitest Browser + Playwright)
4242

4343
# Code Generation
44-
bun run gen:types # Generate TS types from Rust (ts-rs)
45-
bun run gen:translations # Extract i18n strings to .po files
44+
npm run gen:types # Generate TS types from Rust (ts-rs)
45+
npm run gen:translations # Extract i18n strings to .po files
4646

4747
# Rust
48-
bun run clippy # Rust linting
48+
npm run clippy # Rust linting
4949
```
5050

5151
## Project Structure
@@ -82,7 +82,7 @@ src-tauri/ # Rust/Tauri backend
8282
- Optimize for readability and cognitive load, not LoC count or cleverness, unless it's performance-sensitive.
8383
- Keep logic co-located: prefer one file per business concern over spreading it across many.
8484
- Prefer atomic commits.
85-
- Bun is purely infra (dev, build, scripts) — there is no server-side JavaScript.
85+
- Node.js is purely infra (dev, build, scripts) — there is no server-side JavaScript.
8686

8787
**Backend:**
8888

@@ -101,9 +101,9 @@ src-tauri/ # Rust/Tauri backend
101101

102102
## Agent Operations Rules
103103

104-
- After UI edits: ensure `bun run test:lint` (covers linting + type-check) and `bun run test:format` (formatting) pass.
104+
- After UI edits: ensure `npm run test:lint` (covers linting + type-check) and `npm run test:format` (formatting) pass.
105105
- After Rust edits: ensure `cargo test` in `src-tauri` passes. Clippy is a bonus.
106-
- After modifying a Rust struct exposed via `ts-rs`: run `bun run gen:types` and commit the output.
106+
- After modifying a Rust struct exposed via `ts-rs`: run `npm run gen:types` and commit the output.
107107
- After editing the configuration of a route, regenerating the route-tree must be done via the `build` script.
108108
- Never manually edit `src/generated` — always regenerate.
109109
- Don't fix pre-existing issues unrelated to the current task.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Museeks is built upon:
8383
So you will need to install the following dependencies:
8484

8585
- [Tauri requirements](https://v2.tauri.app/start/prerequisites/) for `rust`
86-
- [`Bun.sh`](https://bun.sh)
86+
- [`Node.js`](https://nodejs.org)
8787

8888
Then you can:
8989

@@ -93,15 +93,15 @@ Then you can:
9393

9494
### Development Mode
9595

96-
- `bun ci`
97-
- `bun run tauri dev`
96+
- `npm ci`
97+
- `npm run tauri dev`
9898

9999
This will launch Museeks in dev mode. Hot reload will work out-of-the-box, so when you update a `.js` file, the UI will automatically update. When you edit a `.rs` file, Museeks will automatically rebuild.
100100

101101
### Package Binaries
102102

103-
- `bun ci`
104-
- `bun run tauri build`
103+
- `npm ci`
104+
- `npm run tauri build`
105105

106106
Tauri does not support cross-platform binaries, so the command will only generate binaries for your current platform (macOS, Linux, or Windows).
107107

@@ -110,7 +110,7 @@ Tauri does not support cross-platform binaries, so the command will only generat
110110
- Follow the steps from the "Setup" and "Development Mode" sections
111111
- Go to `src/translations/languages.ts`
112112
- Add your language information to the list
113-
- Run `bun run gen:translations`
113+
- Run `npm run gen:translations`
114114
- This will create a new file `<your_language_code>.po` in the same folder
115115
- Fill in the translations from the created `.po` file
116116
- Open a Pull Request

0 commit comments

Comments
 (0)