Skip to content

Commit e9bbff8

Browse files
authored
Merge pull request #17 from n3-rd/bun-migration
chore: Replace pnpm & NPM with Bun for dependency management in docs and dashboard apps, updating lock files and related configurations.
2 parents b60e625 + ceb1431 commit e9bbff8

File tree

7 files changed

+1177
-1789
lines changed

7 files changed

+1177
-1789
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ RUN apk add --no-cache \
1212
supervisor \
1313
jq \
1414
bash \
15-
nodejs \
16-
npm \
17-
util-linux
15+
util-linux \
16+
libstdc++ \
17+
libgcc
18+
19+
# Install Bun
20+
COPY --from=oven/bun:alpine /usr/local/bin/bun /usr/local/bin/bun
1821

1922
# Detect architecture and download appropriate binaries
2023
ARG PB_VERSION=0.23.4
@@ -64,9 +67,9 @@ RUN mkdir -p /var/www/dashboard
6467
COPY apps/dashboard /tmp/dashboard
6568
WORKDIR /tmp/dashboard
6669
RUN if [ "$SKIP_DASHBOARD" != "true" ]; then \
67-
npm install && \
68-
npx svelte-kit sync && \
69-
npm run build && \
70+
bun install && \
71+
bun x svelte-kit sync && \
72+
bun run build && \
7073
cp -r build/* /var/www/dashboard/; \
7174
else \
7275
echo "Skipping dashboard build (CLI-only mode)" && \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ See the [Development Guide](apps/docs/DEVELOPMENT.md) for more details on projec
3737
```bash
3838
git clone https://github.com/n3-rd/multi-pb.git
3939
cd multi-pb
40+
# Recommended: Use Bun for speed
41+
bun install
4042
./install.sh
4143
```
4244

apps/dashboard/bun.lock

Lines changed: 416 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)