mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-09-20 01:52:47 +08:00
chore: use bun instead of pnpm as package manager
This commit is contained in:
parent
b3d920df00
commit
eb6944fb2a
5
.github/dependabot.yml
vendored
5
.github/dependabot.yml
vendored
@ -1,10 +1,5 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: npm
|
|
||||||
directory: /
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
|
|
||||||
- package-ecosystem: docker
|
- package-ecosystem: docker
|
||||||
directory: /
|
directory: /
|
||||||
schedule:
|
schedule:
|
||||||
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -27,20 +27,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: oven-sh/setup-bun@v1
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
cache: pnpm
|
|
||||||
node-version: latest
|
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: pnpm install
|
run: bun install
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: pnpm build
|
run: bun run build
|
||||||
|
|
||||||
- name: publish gh-pages
|
- name: publish gh-pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
@ -1,4 +1 @@
|
|||||||
#!/usr/bin/env sh
|
bunx commitlint -e
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
pnpm commitlint -e
|
|
||||||
|
@ -1,4 +1 @@
|
|||||||
#!/usr/bin/env sh
|
bunx lint-staged
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
pnpm lint-staged
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
dist
|
dist
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
pnpm-lock.yaml
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
FROM docker.io/node:alpine as builder
|
FROM docker.io/oven/bun:alpine as builder
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN corepack enable
|
RUN bun install
|
||||||
RUN corepack prepare pnpm@latest --activate
|
RUN bun run build
|
||||||
RUN pnpm install
|
|
||||||
RUN pnpm build
|
|
||||||
|
|
||||||
FROM docker.io/caddy:alpine
|
FROM docker.io/caddy:alpine
|
||||||
|
|
||||||
|
@ -109,19 +109,19 @@ docker compose pull && docker compose up -d
|
|||||||
> Install npm dependencies
|
> Install npm dependencies
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pnpm install
|
bun install
|
||||||
```
|
```
|
||||||
|
|
||||||
> Build artifacts
|
> Build artifacts
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pnpm build
|
bun run build
|
||||||
```
|
```
|
||||||
|
|
||||||
> Serve static files
|
> Serve static files
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pnpm serve
|
bun run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
10
package.json
10
package.json
@ -9,7 +9,7 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"format": "prettier -w .",
|
"format": "prettier -w .",
|
||||||
"lint": "eslint --fix .",
|
"lint": "eslint --fix .",
|
||||||
"prepare": "husky install",
|
"prepare": "husky",
|
||||||
"pwa-assets-generator": "pwa-assets-generator",
|
"pwa-assets-generator": "pwa-assets-generator",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
@ -37,7 +37,7 @@
|
|||||||
"@thisbeyond/solid-dnd": "^0.7.5",
|
"@thisbeyond/solid-dnd": "^0.7.5",
|
||||||
"@types/byte-size": "^8.1.2",
|
"@types/byte-size": "^8.1.2",
|
||||||
"@types/lodash": "^4.14.202",
|
"@types/lodash": "^4.14.202",
|
||||||
"@types/node": "^20.11.12",
|
"@types/node": "^20.11.15",
|
||||||
"@types/uuid": "^9.0.8",
|
"@types/uuid": "^9.0.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
||||||
"@typescript-eslint/parser": "^6.20.0",
|
"@typescript-eslint/parser": "^6.20.0",
|
||||||
@ -51,10 +51,10 @@
|
|||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-prettier": "^5.1.3",
|
"eslint-plugin-prettier": "^5.1.3",
|
||||||
"husky": "^8.0.3",
|
"husky": "^9.0.7",
|
||||||
"is-ip": "^5.0.1",
|
"is-ip": "^5.0.1",
|
||||||
"ky": "^1.2.0",
|
"ky": "^1.2.0",
|
||||||
"lint-staged": "^15.2.0",
|
"lint-staged": "^15.2.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"match-sorter": "^6.3.3",
|
"match-sorter": "^6.3.3",
|
||||||
"prettier": "^3.2.4",
|
"prettier": "^3.2.4",
|
||||||
@ -69,7 +69,7 @@
|
|||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"uuid": "^9.0.1",
|
"uuid": "^9.0.1",
|
||||||
"vite": "^5.0.12",
|
"vite": "^5.0.12",
|
||||||
"vite-plugin-pwa": "^0.17.4",
|
"vite-plugin-pwa": "^0.17.5",
|
||||||
"vite-plugin-solid": "^2.9.1",
|
"vite-plugin-solid": "^2.9.1",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.22.4"
|
||||||
}
|
}
|
||||||
|
6753
pnpm-lock.yaml
6753
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user