Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/the-system/mise.toml

Raw
[tasks.bench]
description = "Benchmark the-system render pipeline"
depends = ["//:install"]
run = "node --no-warnings --experimental-strip-types __bench__/render.bench.ts"

[tasks.profile]
description = "Profile the-system render pipeline"
depends = ["//:install"]
run = "node ../../scripts/profile-benchmark.mjs the-system __bench__/render.bench.ts"

[tasks.benchstat]
description = "Compare the-system benchmark results"
depends = ["//:install"]
usage = '''
arg "<baseline>"
arg "<candidate>"
'''
run = 'benchstat "{{ usage.baseline }}" "{{ usage.candidate }}"'

[tasks.fmt]
description = "Format the-system"
depends = ["//:install"]
run = "biome check --write --config-path ../.. ."

[tasks.lint]
description = "Verify the-system formatting and lint"
depends = ["//:install"]
run = [
  "biome ci --config-path ../.. .",
  "rumdl check --config ../../.rumdl.toml .",
  "taplo format --check --config ../../.taplo.toml mise.toml",
]

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

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

[tasks.doctor]
description = "Validate System project documents without modifying them"
depends = ["//:install"]
run = '''node --no-warnings --experimental-strip-types --input-type=module -e "import { runDoctor } from './doctor.ts'; const result = runDoctor('../..'); for (const diagnostic of result.diagnostics) console.error(diagnostic.path + ': ' + diagnostic.message); if (result.exitCode) process.exitCode = result.exitCode; else console.log('OK System doctor');"'''

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

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