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
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"] [tasks."sdk:build"]
dir = "open-api/typescript-sdk" dir = "open-api/typescript-sdk"
env._.path = "./node_modules/.bin" run = "pnpm run build"
run = "tsc"
# i18n tasks # i18n tasks
[tasks."i18n:format"] [tasks."i18n:format"]
dir = "i18n" dir = "i18n"
run = { task = ":i18n:format-fix" } run = "pnpm run format"
[tasks."i18n:format-fix"] [tasks."i18n:format-fix"]
dir = "i18n" dir = "i18n"

View File

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