mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
Moves the fictional movie catalog into `libs/shared/marketing-fixtures` so the
Xtream and Stalker mocks describe the same titles, and adds 20 rendered posters
plus the shared fixture types behind them.
Supporting changes made while getting it green:
- `shared-marketing-fixtures` is classified Tier B in the coverage policy. Not
Tier A: it is fictional fixture data, so a statement percentage over it means
nothing, and a Tier A entry would pull it into the merged coverage map and the
ratchet. Tier B still runs its spec in CI. `stalker-mock-server` needs no entry
of its own — it is already Tier C and the Tier B/C runner falls back to
`pnpm nx test <project>`, so its new `marketing-poster-url.spec.ts` runs.
- Two release-capture defects the catalog reorder introduced, both fixed in
`tools/release/capture-app-driver.ts`:
- VOD stream ids are `MARKETING_VOD_STREAM_ID_BASE + index` and the generator
now lists the showcase movies first, so 62000-62002 became Black Harbor, The
Paper Astronaut and Summer Static while the dashboard seeding still mapped
those ids to the previous titles' backdrops.
- the raw `tsx` spawn of the Xtream mock lacked `--tsconfig
tsconfig.base.json`, so the mock could not resolve
`@iptvnator/shared/marketing-fixtures` and the capture never started. Both
mock projects' own serve targets already passed the flag.
47 lines
1.5 KiB
JSON
47 lines
1.5 KiB
JSON
{
|
|
"name": "stalker-mock-server",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"sourceRoot": "apps/stalker-mock-server/src",
|
|
"tags": ["scope:dev-tools", "domain:stalker", "type:dev-app"],
|
|
"targets": {
|
|
"serve": {
|
|
"continuous": true,
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "pnpm tsx --tsconfig tsconfig.base.json apps/stalker-mock-server/src/main.ts",
|
|
"cwd": "{workspaceRoot}",
|
|
"color": true,
|
|
"env": {
|
|
"PORT": "3210",
|
|
"NODE_ENV": "development"
|
|
}
|
|
}
|
|
},
|
|
"serve-with-watch": {
|
|
"continuous": true,
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "pnpm tsx watch --tsconfig tsconfig.base.json apps/stalker-mock-server/src/main.ts",
|
|
"cwd": "{workspaceRoot}",
|
|
"color": true,
|
|
"env": {
|
|
"PORT": "3210",
|
|
"NODE_ENV": "development"
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "apps/stalker-mock-server/jest.config.ts",
|
|
"tsConfig": "apps/stalker-mock-server/tsconfig.spec.json"
|
|
}
|
|
}
|
|
}
|
|
}
|