switch to pnpm

This commit is contained in:
arabcoders 2025-05-22 23:49:02 +03:00
parent 870a2a8818
commit 1c39d42a46
6 changed files with 9057 additions and 7162 deletions

View file

@ -55,17 +55,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install frontend dependencies
uses: bahmutov/npm-install@v1
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
working-directory: ui
install-command: yarn --production --prefer-offline --frozen-lockfile
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install frontend dependencies
working-directory: ui
run: pnpm install --production --prefer-offline --frozen-lockfile
- name: Build frontend
uses: bahmutov/npm-install@v1
with:
working-directory: ui
install-command: yarn run generate
working-directory: ui
run: pnpm run generate
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@ -92,17 +100,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install frontend dependencies
uses: bahmutov/npm-install@v1
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
working-directory: ui
install-command: yarn --production --prefer-offline --frozen-lockfile
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install frontend dependencies
working-directory: ui
run: pnpm install --production --prefer-offline --frozen-lockfile
- name: Build frontend
uses: bahmutov/npm-install@v1
with:
working-directory: ui
install-command: yarn run generate
working-directory: ui
run: pnpm run generate
- name: Update Version File
uses: ArabCoders/write-version-to-file@master

4
.vscode/launch.json vendored
View file

@ -13,7 +13,7 @@
"--port",
"8082"
],
"runtimeExecutable": "yarn",
"runtimeExecutable": "pnpm",
"type": "node",
"cwd": "${workspaceFolder}/ui",
"env": {
@ -45,7 +45,7 @@
"run",
"generate"
],
"runtimeExecutable": "yarn",
"runtimeExecutable": "pnpm",
"type": "node",
"cwd": "${workspaceFolder}/ui",
"console": "internalConsole",

View file

@ -2,7 +2,7 @@ FROM node:lts-alpine AS node_builder
WORKDIR /app
COPY ui ./
RUN if [ ! -f "/app/exported/index.html" ]; then yarn install --production --prefer-offline --frozen-lockfile && yarn run generate; else echo "Skipping UI build, already built."; fi
RUN if [ ! -f "/app/exported/index.html" ]; then pnpm install --production --prefer-offline --frozen-lockfile && pnpm run generate; else echo "Skipping UI build, already built."; fi
FROM python:3.13-alpine AS python_builder

View file

@ -12,7 +12,7 @@
"web-types": "./web-types.json",
"dependencies": {
"@pinia/nuxt": "^0.11.0",
"@sentry/nuxt": "^9.21.0",
"@sentry/nuxt": "^9.22.0",
"@vueuse/core": "^13.2.0",
"@vueuse/nuxt": "^13.2.0",
"@xterm/addon-fit": "^0.10.0",
@ -22,12 +22,11 @@
"floating-vue": "^5.2.2",
"hls.js": "^1.6.2",
"moment": "^2.30.1",
"nuxt": "^3.17.3",
"nuxt": "^3.17.4",
"pinia": "^3.0.2",
"socket.io-client": "^4.7.2",
"socket.io-client": "^4.8.1",
"vue": "^3.5.14",
"vue-router": "^4.5.1",
"vue-toastification": "^2.0.0-rc.5"
},
"devDependencies": {}
"vue-toastification": "2.0.0-rc.5"
}
}

9017
ui/pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff