chore: update task commands in web/mise.toml to use pnpm (#26345)

* chore: update task commands in mise.toml to use pnpm

* Replaced direct commands with pnpm run equivalents for consistency.
* Added new tasks for type checking and Svelte checks.
* Removed deprecated svelte-kit-sync task and adjusted dependencies accordingly.

* mroe

* chore: update mise.toml to add demo server task

* Removed the direct IMMICH_SERVER_URL setting from the environment section.
* Added a new task for starting the demo server with the IMMICH_SERVER_URL environment variable.
* Ensured consistency in task definitions.
This commit is contained in:
Timon 2026-02-19 22:10:55 +01:00 committed by GitHub
parent 5c7c07a09f
commit 7b4cabc2c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 33 deletions

View File

@ -37,13 +37,12 @@ run = "pnpm install --filter @immich/sdk --frozen-lockfile"
[tasks."sdk:build"]
dir = "open-api/typescript-sdk"
env._.path = "./node_modules/.bin"
run = "tsc"
run = "pnpm run build"
# i18n tasks
[tasks."i18n:format"]
dir = "i18n"
run = { task = ":i18n:format-fix" }
run = "pnpm run format"
[tasks."i18n:format-fix"]
dir = "i18n"

View File

@ -1,56 +1,46 @@
[tasks.install]
run = "pnpm install --filter immich-web --frozen-lockfile"
[tasks."svelte-kit-sync"]
env._.path = "./node_modules/.bin"
run = "svelte-kit sync"
[tasks.build]
env._.path = "./node_modules/.bin"
run = "vite build"
run = "pnpm run build"
[tasks."build-stats"]
env.BUILD_STATS = "true"
env._.path = "./node_modules/.bin"
run = "vite build"
run = "pnpm run build:stats"
[tasks.preview]
env._.path = "./node_modules/.bin"
run = "vite preview"
run = "pnpm run preview"
[tasks.start]
env._.path = "./node_modules/.bin"
run = "vite dev --host 0.0.0.0 --port 3000"
depends = [":install", "//:sdk:install", "//:sdk:build"]
run = "pnpm run dev"
[tasks."start-demo"]
env.IMMICH_SERVER_URL = "https://demo.immich.app"
run = { task = ":start" }
[tasks.test]
depends = ["svelte-kit-sync"]
env._.path = "./node_modules/.bin"
run = "vitest"
run = "pnpm run test"
[tasks.format]
env._.path = "./node_modules/.bin"
run = "prettier --check ."
run = "pnpm run format"
[tasks."format-fix"]
env._.path = "./node_modules/.bin"
run = "prettier --write ."
run = "pnpm run format:fix"
[tasks.lint]
env._.path = "./node_modules/.bin"
run = "eslint . --max-warnings 0 --concurrency 4"
run = "pnpm run lint"
[tasks."lint-fix"]
run = { task = "lint --fix" }
run = "pnpm run lint:fix"
[tasks.check]
depends = ["svelte-kit-sync"]
env._.path = "./node_modules/.bin"
run = "tsc --noEmit"
[tasks.check-typescript]
run = "pnpm run check:typescript"
[tasks."check-svelte"]
depends = ["svelte-kit-sync"]
env._.path = "./node_modules/.bin"
run = "svelte-check --no-tsconfig --fail-on-warnings"
run = "pnpm run check:svelte"
[tasks.check]
run = { tasks = [":check-typescript", ":check-svelte"] }
[tasks.checklist]
run = [