feat: bun -> pnpm

This commit is contained in:
kunish 2024-04-08 17:34:57 +08:00
parent d73f328b35
commit 74ed5448f4
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
9 changed files with 9045 additions and 13 deletions

View File

@ -1,5 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
- package-ecosystem: docker
directory: /
schedule:

View File

@ -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

View File

@ -1 +1 @@
bunx commitlint -e
pnpm commitlint -e

View File

@ -1 +1 @@
bunx lint-staged
pnpm lint-staged

View File

@ -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

View File

@ -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

BIN
bun.lockb

Binary file not shown.

View File

@ -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",

9018
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff