repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by admin
extensions/skillz/mise.toml
Raw[tasks.bench]
description = "Benchmark skillz resource discovery"
depends = ["//:install"]
run = "node --no-warnings --experimental-strip-types __bench__/discovery.bench.ts"
[tasks.profile]
description = "Profile skillz resource discovery"
depends = ["//:install"]
run = [
'''node -e "require('node:fs').mkdirSync(require('node:path').join(require('node:os').tmpdir(), 'pi-ext-skillz-profile'), { recursive: true })"''',
"node --no-warnings --experimental-strip-types --cpu-prof --cpu-prof-dir ${TMPDIR:-/tmp}/pi-ext-skillz-profile --cpu-prof-name discovery.cpuprofile __bench__/discovery.bench.ts",
]
[tasks.benchstat]
description = "Compare skillz benchmark samples"
depends = ["//:install"]
usage = '''
arg "<baseline>"
arg "<candidate>"
'''
run = 'benchstat "{{ usage.baseline }}" "{{ usage.candidate }}"'
[tasks.fmt]
description = "Format skillz 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 skillz 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 skillz extension"
depends = ["//:install"]
run = [
{ task = "//:test", args = ["extensions/skillz"] },
]
[tasks.check]
description = "Check skillz extension"
depends = ["//:install"]
run = [
{ task = "//:build", args = ["skillz"] },
{ task = "//:build-ext", args = ["skillz"] },
]
[tasks.verify-package]
description = "Build skillz and load the generated package relocated outside the checkout"
depends = ["//:install"]
run = [
{ task = "//:build-ext", args = ["skillz"] },
{ task = "//:verify-packages", args = ["skillz"] },
]