Skip to content

Commit 34ff561

Browse files
committed
hello bun 👋.
1 parent 02fca2a commit 34ff561

File tree

11 files changed

+1655
-64
lines changed

11 files changed

+1655
-64
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ jobs:
1818
contents: read
1919
steps:
2020
- uses: actions/checkout@v5
21-
- name: Use Node.js
22-
uses: actions/setup-node@v6
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v2
2323
with:
24-
node-version: 20
25-
- name: Install pnpm
26-
uses: pnpm/action-setup@v4
24+
version: latest
25+
2726
- name: Install dependencies
28-
run: pnpm install --frozen-lockfile
27+
run: bun install --frozen-lockfile

.github/workflows/e2e.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Use Node.js
16-
uses: actions/setup-node@v3
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v2
1717
with:
18-
node-version: 20
19-
- name: Install pnpm
20-
uses: pnpm/action-setup@v4
18+
version: latest
19+
2120
- name: Install dependencies
22-
run: pnpm install --frozen-lockfile
21+
run: bun install --frozen-lockfile
22+
2323
- name: Install Playwright Browsers
24-
run: pnpm exec playwright install --with-deps chromium
24+
run: bunx playwright install --with-deps chromium
25+
2526
- name: E2E Tests
26-
run: pnpm run e2e
27+
run: bun run e2e
2728
- uses: actions/upload-artifact@v4
2829
if: ${{ !cancelled() }}
2930
with:

.github/workflows/tests.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,25 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Use Node.js
19-
uses: actions/setup-node@v3
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
2020
with:
21-
node-version: 20
22-
- name: Install pnpm
23-
uses: pnpm/action-setup@v4
21+
version: latest
22+
2423
- name: Audit dependencies
25-
run: pnpm audit --audit-level high
24+
run: bun audit --audit-level high
25+
2626
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
27+
run: bun install --frozen-lockfile
28+
2829
- name: Svelte Diagnostics
29-
run: pnpm run check
30+
run: bun check
31+
3032
- name: Linter
31-
run: pnpm run lint
33+
run: bun lint
34+
3235
- name: Unit Tests
33-
run: pnpm run test
36+
run: bun test
37+
3438
- name: Build Console
35-
run: pnpm run build
39+
run: bun run build

.gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
66

77
tasks:
8-
- init: npm install && npm run build
9-
command: npm run dev
8+
- init: bun install && bun run build
9+
command: bun run dev

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Ignore files for PNPM, NPM and YARN
1+
# Ignore files for PNPM, NPM, BUN and YARN
22
pnpm-lock.yaml
33
package-lock.json
44
yarn.lock
5+
bun.lock

CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ If you are worried about or don't know where to start, check out the next sectio
4444
git clone https://github.com/appwrite/console.git appwrite-console
4545
```
4646

47-
### 2. Install dependencies with npm
47+
### 2. Install dependencies with Bun
4848

4949
Navigate to the Appwrite Console repository and install dependencies.
5050

5151
```bash
52-
cd appwrite-console && pnpm install
52+
cd appwrite-console && bun install
5353
```
5454

5555
### 3. Install and run Appwrite locally
@@ -68,7 +68,7 @@ Add a `.env` file by copying the `.env.example` file as a template in the projec
6868
Finally, start a development server:
6969

7070
```bash
71-
pnpm dev
71+
bun dev
7272
```
7373

7474
> **Note**
@@ -77,15 +77,15 @@ pnpm dev
7777
### Build
7878

7979
```bash
80-
pnpm build
80+
bun run build
8181
```
8282

83-
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
83+
> You can preview the built app with `bun run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
8484
8585
### Tests
8686

8787
```bash
88-
pnpm test
88+
bun test
8989
```
9090

9191
This will run tests in the `tests/` directory.
@@ -95,13 +95,13 @@ This will run tests in the `tests/` directory.
9595
Code should be consistently formatted everywhere. Before committing code, run the code-formatter.
9696

9797
```bash
98-
pnpm run format
98+
bun run format
9999
```
100100

101101
### Linter
102102

103103
```bash
104-
pnpm run lint
104+
bun run lint
105105
```
106106

107107
### Diagnostics
@@ -113,7 +113,7 @@ Diagnostic tool that checks for the following:
113113
- TypeScript compiler errors
114114

115115
```bash
116-
pnpm run check
116+
bun run check
117117
```
118118

119119
## Submit a Pull Request 🚀
@@ -176,11 +176,11 @@ $ git push origin [name_of_your_new_branch]
176176
Before committing always make sure to run all available tools to improve the codebase:
177177

178178
- Formatter
179-
- `pnpm run format`
179+
- `bun run format`
180180
- Tests
181-
- `pnpm test`
181+
- `bun test`
182182
- Diagnostics
183-
- `pnpm run check`
183+
- `bun run check`
184184

185185
### Performance
186186

Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
FROM --platform=$BUILDPLATFORM node:20-alpine AS build
1+
FROM --platform=$BUILDPLATFORM oven/bun:alpine AS build
22

33
WORKDIR /app
44

5-
ENV PNPM_HOME="/pnpm"
6-
ENV PATH="$PNPM_HOME:$PATH"
7-
RUN npm i -g corepack@latest
8-
RUN corepack enable
9-
RUN corepack prepare pnpm@10.0.0 --activate
10-
115
ADD ./package.json /app/package.json
12-
ADD ./pnpm-lock.yaml /app/pnpm-lock.yaml
6+
ADD ./bun.lock /app/bun.lock
137

14-
RUN pnpm install --frozen-lockfile
8+
RUN bun install --frozen-lockfile
159

1610
ADD ./build.js /app/build.js
1711
ADD ./tsconfig.json /app/tsconfig.json
@@ -43,7 +37,7 @@ ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
4337
ENV SENTRY_RELEASE=$SENTRY_RELEASE
4438
ENV NODE_OPTIONS=--max_old_space_size=8192
4539

46-
RUN pnpm run build
40+
RUN bun run build
4741

4842
FROM flashspys/nginx-static
4943

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import kleur from 'kleur';
12
import { fileURLToPath } from 'url';
23
import { build, loadEnv } from 'vite';
3-
import kleur from 'kleur';
44

55
const { bold, yellow } = kleur;
66
const __dirname = fileURLToPath(new URL('.', import.meta.url));

0 commit comments

Comments
 (0)