[tasks.fmt] description = "Format canvas 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 canvas 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 canvas extension" depends = ["//:install"] run = [{ task = "//:test", args = ["extensions/canvas"] }] [tasks.check] description = "Check canvas extension" depends = ["//:install"] run = [{ task = "//:build", args = ["canvas"] }] [tasks.verify-package] description = "Build canvas and verify relocated generated package" env.PI_EXT_VERIFY_CANVAS_PACKAGE = "1" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["canvas"] }, { task = "//:verify-packages", args = ["--testNamePattern", "canvas loads relocated"] }, { task = "//:test", args = ["extensions/canvas/__serial__/package.test.ts"] }, ] [tasks.browser-fixture] description = "Serve isolated real-Pi canvas for browser-driven verification (10-minute limit)" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["canvas"] }, "node __e2e__/agent-server.ts", ] [tasks.e2e] description = "Test canvas browser collaboration against generated package" usage = ''' arg "[args]" var=#true ''' depends = ["//:install"] run = [ { task = "//:build-ext", args = [ "canvas", ] }, '''node ../../node_modules/@playwright/test/cli.js test --config playwright.config.ts{% for arg in usage.args %} "{{ arg }}"{% endfor %}''', ]