mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
92 lines
2.0 KiB
TOML
92 lines
2.0 KiB
TOML
[tools]
|
|
opentofu = "1.12.6"
|
|
terragrunt = "1.1.4"
|
|
node = "24.20.0"
|
|
pnpm = "12.3.2"
|
|
wrangler = "4.129.0"
|
|
|
|
[tasks.deploy]
|
|
run = "wrangler pages deploy ${BUILD_DIR} --project-name=${PROJECT_NAME} --branch=${BRANCH_NAME}"
|
|
|
|
[tasks.tg]
|
|
run = "op run '--env-file={{config_root}}/deployment/.env' -- terragrunt"
|
|
description = "Wrapper for terragrunt"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks."tg:fmt"]
|
|
run = "mise run tg hcl format"
|
|
description = "Format terragrunt files"
|
|
|
|
[tasks.tf]
|
|
run = "mise run tg run --all"
|
|
description = "Wrapper for terragrunt run-all"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks."tf:fmt"]
|
|
run = "tofu fmt -recursive tf/"
|
|
description = "Format terraform files"
|
|
|
|
[tasks."tf:init"]
|
|
run = "mise run tf init -- -reconfigure"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks."tf:plan"]
|
|
run = "mise run tf plan"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks."tf:apply"]
|
|
run = "mise run tf apply"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks."tf:destroy"]
|
|
run = "mise run tf destroy"
|
|
dir = "{{cwd}}"
|
|
|
|
[tasks.dev]
|
|
description = "Run a dev server"
|
|
usage = '''
|
|
arg "<app>" help="Target app" {
|
|
choices "api" "awesome" "buy" "datasets" "get" "my" "root" "ui"
|
|
default "root"
|
|
}
|
|
'''
|
|
run = [
|
|
"pnpm --filter @immich/ui --filter @immich/svelte-markdown-preprocess build",
|
|
{ task = "watch-and-open", args = ["{{usage.app}}"] }
|
|
]
|
|
|
|
[tasks."watch-and-open"]
|
|
description = "Run watch and open in parallel"
|
|
usage = '''
|
|
arg "<app>" help="Target app"
|
|
'''
|
|
depends = [ { task = "watch" }, { task = "open", args = ["{{usage.app}}"] } ]
|
|
|
|
[tasks.watch]
|
|
run = "pnpm --filter @immich/ui --filter @immich/svelte-markdown-preprocess --parallel run watch"
|
|
|
|
[tasks.import-post]
|
|
dir = "{{config_root}}"
|
|
run = "pnpm --filter @immich/import-post run import"
|
|
env = { _.file = ".env" }
|
|
|
|
[tasks.cleanup-bucket]
|
|
dir = "{{config_root}}"
|
|
run = "pnpm --filter @immich/import-post run cleanup"
|
|
env = { _.file = ".env" }
|
|
|
|
|
|
[tasks.open]
|
|
usage = '''
|
|
arg "<app>" help="Target app"
|
|
'''
|
|
run = [
|
|
"sleep 3",
|
|
'echo "Launching apps/{{usage.app}}.immich.app..."',
|
|
'pnpm --filter "{{usage.app}}.immich.app" start --open'
|
|
]
|
|
|
|
[settings]
|
|
experimental = true
|
|
idiomatic_version_file_enable_tools = []
|