Skip to content

Commit

Permalink
feat: bun -> pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Apr 8, 2024
1 parent d73f328 commit 74ed544
Show file tree
Hide file tree
Showing 9 changed files with 9,045 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily

- package-ecosystem: docker
directory: /
schedule:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1
- uses: pnpm/action-setup@v3
with:
version: latest

- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: latest

- name: install dependencies
run: bun install
run: pnpm install

- name: build
run: bun run build
run: pnpm build

- name: publish gh-pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bunx commitlint -e
pnpm commitlint -e
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bunx lint-staged
pnpm lint-staged
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM docker.io/oven/bun:alpine as builder
FROM docker.io/node:alpine as builder

ENV HUSKY=0
WORKDIR /build

COPY . .

RUN bun install
RUN bun run build
RUN corepack enable
RUN corepack prepare pnpm@latest --activate
RUN pnpm install
RUN pnpm build

FROM docker.io/caddy:alpine

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@ docker compose pull && docker compose up -d
> Install npm dependencies
```shell
bun install
pnpm install
```

> Build artifacts
```shell
bun run build
pnpm build
```

> Serve static files
```shell
bun run serve
pnpm serve
```

## Credits
Expand Down
Binary file removed bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@tabler/icons-solidjs": "^2.47.0",
"@tanstack/match-sorter-utils": "^8.15.1",
"@tanstack/solid-table": "^8.15.3",
"@tanstack/solid-virtual": "3.0.2",
"@tanstack/virtual-core": "3.0.2",
"@tanstack/solid-virtual": "^3.2.0",
"@tanstack/virtual-core": "^3.2.0",
"@thisbeyond/solid-dnd": "^0.7.5",
"@types/byte-size": "^8.1.2",
"@types/lodash": "^4.17.0",
Expand Down
Loading

0 comments on commit 74ed544

Please sign in to comment.