Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/mockup/mise.toml

Raw
[tasks.fmt]
description = "Format mockup extension"
depends = ["//:install"]
run = [
  "biome check --write --config-path ../.. .",
  "rumdl fmt --config ../../.rumdl.toml .",
  "taplo format --config ../../.taplo.toml mise.toml",
]

[tasks.lint]
description = "Lint mockup extension"
depends = ["//:install"]
run = [
  "biome ci --config-path ../.. .",
  "rumdl check --config ../../.rumdl.toml .",
  "taplo format --check --config ../../.taplo.toml mise.toml",
]

[tasks.test]
description = "Test mockup extension"
depends = ["//:install"]
run = [
  { task = "//:test", args = ["extensions/mockup"] },
]

[tasks.check]
description = "Check mockup extension"
depends = ["//:install"]
run = [
  { task = "//:build", args = ["mockup"] },
  { task = "//:build-ext", args = ["mockup"] },
]

[tasks.e2e]
description = "Run mockup browser E2E tests"
depends = ["//:install"]
env = { NODE_ENV = "test" }
run = "npm exec -- playwright test --config playwright.config.ts"

[tasks.verify-package]
description = "Build mockup and load the generated package relocated outside the checkout"
depends = ["//:install"]
run = [
  { task = "//:build-ext", args = ["mockup"] },
  { task = "//:verify-packages", args = ["mockup"] },
]