Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/firefox-bidi/mise.toml

Raw
[tasks.fmt]
description = "Format firefox-bidi 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 firefox-bidi 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 firefox-bidi extension"
depends = ["//:install"]
run = [
  { task = "//:test", args = ["extensions/firefox-bidi"] },
]

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

[tasks.bench]
description = "Microbenchmark the batch hot path (fake socket)"
depends = ["//:install"]
run = "node --no-warnings --experimental-strip-types __bench__/runBatch.bench.mts 30"

[tasks.bench-e2e]
description = "Benchmark batches against a real headless Firefox (spawns a browser)"
depends = ["//:install"]
usage = '''
arg "[pairs]" default="12"
'''
run = "node --no-warnings --experimental-strip-types __bench__/e2e.mts {{ usage.pairs }}"

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

[tasks.coverage]
description = "Non-gating V8 coverage for firefox-bidi extension"
depends = ["//:install"]
run = [{ task = "//:coverage", args = ["firefox-bidi"] }]

[tasks.mutate]
description = "Author-driven mutation testing for firefox-bidi extension. Usage: mutate <target>"
depends = ["//:install"]
usage = 'arg "<target>" help="Path under this extension to mutate"'
run = 'mise run //:mutate firefox-bidi "{{ usage.target }}"'

[tasks.fuzz]
description = "Author-driven fuzz campaigns for firefox-bidi extension. Usage: fuzz <target>"
depends = ["//:install"]
usage = 'arg "<target>" help="Fuzz target name under __fuzz__"'
run = 'mise run //:fuzz firefox-bidi "{{ usage.target }}"'