[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", "--maxWorkers=1", "--no-file-parallelism"] }] [tasks.check] description = "Check canvas extension" depends = ["//:install"] run = [{ task = "//:build", args = ["canvas"] }] [tasks.layout-proof] description = "Verify Pi-owned generation and frozen-viewer catch-up using native Chromium" env.PI_CANVAS_NATIVE_TESTS = "1" depends = ["//:install"] run = [ { task = "//:build-ext", args = [ "canvas", ] }, { task = "//:test", args = [ "extensions/canvas/__serial__/layout.test.ts", "extensions/canvas/__serial__/server-generation.test.ts", "extensions/canvas/__serial__/browser-sync.test.ts", "--maxWorkers=1", "--no-file-parallelism", ] }, ] [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 = ["canvas"] }, { 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 = "Run canvas E2E with cached browsers and disposable test state" depends = ["//:install"] usage = ''' arg "[args]" var=#true ''' run = '''node ../../scripts/e2e.ts "//extensions/canvas:e2e" --{% for arg in usage.args %} "{{ arg }}"{% endfor %}''' [tasks.e2e-run] hide = true 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 %}''', ]