Files
ThreadNet-Web/packages/playwright-common/project.json
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.8 KiB
JSON
Raw Normal View History

{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"root": "packages/playwright-common",
"targets": {
2026-04-09 15:22:56 +01:00
"build:playwright": {
"cache": true,
"command": "tsc",
"inputs": ["src"],
"outputs": ["{projectRoot}/lib"],
"options": { "cwd": "packages/playwright-common" },
"dependsOn": ["^build"]
},
"lint:types": {
"command": "pnpm exec tsc --noEmit",
"options": { "cwd": "packages/playwright-common" },
"dependsOn": ["^build"]
2026-04-09 15:22:56 +01:00
},
"docker:prebuild": {
"cache": true,
"command": "PLAYWRIGHT_VERSION=$(pnpm --silent -- playwright --version | awk '{print $2}') && printf '%s\\n' \"PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION\" \"INPUT_TAGS=\\\"type=ref,event=branch\\ntype=raw,enable={{is_default_branch}},value=$PLAYWRIGHT_VERSION\\\"\" > .env.docker:build",
"inputs": [{ "runtime": "pnpm --silent -- playwright --version" }],
"outputs": ["{projectRoot}/.env.docker:build"],
"options": { "cwd": "packages/playwright-common" }
},
"docker:build": {
"executor": "@nx-tools/nx-container:build",
"dependsOn": ["docker:prebuild"],
"options": {
"load": true,
"engine": "docker",
"platforms": ["linux/amd64", "linux/arm64"],
"provenance": "true",
"sbom": true,
"build-args": ["PLAYWRIGHT_VERSION"],
2026-03-27 10:13:20 +01:00
"context": "{projectRoot}",
"metadata": {
"images": ["ghcr.io/element-hq/element-web/playwright-server"]
}
}
}
}
}