2026-02-19 16:28:51 +00:00
|
|
|
{
|
|
|
|
|
"$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"],
|
2026-04-13 09:30:22 +01:00
|
|
|
"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
|
|
|
},
|
2026-02-19 16:28:51 +00:00
|
|
|
"docker:prebuild": {
|
|
|
|
|
"cache": true,
|
2026-05-21 13:30:30 +01:00
|
|
|
"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",
|
2026-02-19 16:28:51 +00:00
|
|
|
"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,
|
2026-05-20 12:20:54 +01:00
|
|
|
"build-args": ["PLAYWRIGHT_VERSION"],
|
2026-03-27 10:13:20 +01:00
|
|
|
"context": "{projectRoot}",
|
2026-02-19 16:28:51 +00:00
|
|
|
"metadata": {
|
2026-05-21 13:30:30 +01:00
|
|
|
"images": ["ghcr.io/element-hq/element-web/playwright-server"]
|
2026-02-19 16:28:51 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|