[tasks.fmt] description = "Format loop 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 loop 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 loop extension" depends = ["//:install"] run = [ { task = "//:test", args = ["extensions/loop"] }, ] [tasks.check] description = "Check loop extension" depends = ["//:install"] run = [ { task = "//:build", args = ["loop"] }, { task = "//:build-ext", args = ["loop"] }, ] [tasks.verify-package] description = "Build loop and load the generated package relocated outside the checkout" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["loop"] }, { task = "//:verify-packages", args = ["loop"] }, ] [tasks.e2e] description = "Run loop site E2E with cached browsers and disposable test state" depends = ["//:install"] usage = ''' arg "[args]" var=#true ''' run = '''node ../../scripts/e2e.ts "//extensions/loop:e2e" --{% for arg in usage.args %} "{{ arg }}"{% endfor %}''' [tasks.e2e-run] hide = true usage = 'arg "[args]" var=#true' description = "Run loop site browser E2E tests" depends = ["//:install", { task = "//:build-ext", args = ["loop"] }] env = { NODE_ENV = "test" } run = '''npm exec -- playwright test --config playwright.config.ts{% for arg in usage.args %} "{{ arg }}"{% endfor %}''' [tasks.preview] description = "Preview the loop companion animation in this terminal without Pi; keys 1-5 switch loop states, q quits" depends = ["//:install"] raw = true run = "node --no-warnings __bench__/companion.ts"