[tasks.lint] description = "Lint afk 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 afk extension" depends = ["//:install"] run = [ { task = "//:test", args = ["extensions/afk"] }, ] [tasks.check] description = "Check afk extension" depends = ["//:install"] run = [ { task = "//:build", args = ["afk"] }, { task = "//:build-ext", args = ["afk"] }, ] [tasks.bench] description = "Profile and compare AFK widget redraws with a simulated clock" depends = ["//:install"] usage = 'arg "[args]" var=#true help="Optional --baseline, --profile, --output paths"' run = 'node --no-warnings __bench__/widget.ts{% for arg in usage.args %} "{{ arg }}"{% endfor %}' [tasks.verify-package] description = "Build afk and exercise its relocated generated package" depends = ["//:install"] env.PI_AFK_VERIFY_PACKAGE = "1" run = [ { task = "//:build-ext", args = ["afk"] }, { task = "//:test", args = ["extensions/afk/__serial__/package.test.ts"] }, ]