|
2 | 2 | "$schema": "./node_modules/nx/schemas/nx-schema.json", |
3 | 3 | "namedInputs": { |
4 | 4 | "default": ["{projectRoot}/**/*", "sharedGlobals"], |
5 | | - "os": [ |
6 | | - { |
7 | | - "runtime": "node -e \"console.log(require('os').platform())\"" |
8 | | - } |
9 | | - ], |
| 5 | + "os": [{ "runtime": "node -e \"console.log(require('os').platform())\"" }], |
10 | 6 | "production": [ |
11 | 7 | "default", |
12 | 8 | "!{projectRoot}/README.md", |
|
29 | 25 | ], |
30 | 26 | "test-vitest-inputs": [ |
31 | 27 | "os", |
32 | | - { |
33 | | - "env": "NX_VERBOSE_LOGGING" |
34 | | - }, |
35 | | - { |
36 | | - "externalDependencies": ["vitest"] |
37 | | - } |
| 28 | + { "env": "NX_VERBOSE_LOGGING" }, |
| 29 | + { "externalDependencies": ["vitest"] } |
38 | 30 | ], |
39 | 31 | "lint-eslint-inputs": [ |
40 | 32 | "{workspaceRoot}/eslint.config.js", |
41 | | - { |
42 | | - "externalDependencies": ["eslint"] |
43 | | - } |
| 33 | + { "externalDependencies": ["eslint"] } |
44 | 34 | ], |
45 | 35 | "typecheck-typescript-inputs": [ |
46 | 36 | "{workspaceRoot}/tsconfig.base.json", |
47 | | - { |
48 | | - "externalDependencies": ["typescript"] |
49 | | - } |
| 37 | + { "externalDependencies": ["typescript"] } |
50 | 38 | ], |
51 | 39 | "code-pushup-inputs": [ |
52 | 40 | "{workspaceRoot}/code-pushup.preset.ts", |
53 | | - { |
54 | | - "env": "NODE_OPTIONS" |
55 | | - }, |
56 | | - { |
57 | | - "env": "TSX_TSCONFIG_PATH" |
58 | | - } |
| 41 | + { "env": "NODE_OPTIONS" }, |
| 42 | + { "env": "TSX_TSCONFIG_PATH" } |
59 | 43 | ], |
60 | | - "sharedGlobals": [ |
61 | | - { |
62 | | - "runtime": "node -v" |
63 | | - }, |
64 | | - { |
65 | | - "runtime": "npm -v" |
66 | | - } |
67 | | - ] |
| 44 | + "sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "npm -v" }] |
68 | 45 | }, |
69 | 46 | "targetDefaults": { |
70 | 47 | "lint": { |
|
148 | 125 | "cache": false, |
149 | 126 | "dependsOn": ["code-pushup-*"], |
150 | 127 | "options": { |
151 | | - "command": "autorun", |
| 128 | + "projectPrefix": "cli", |
152 | 129 | "config": "{projectRoot}/code-pushup.config.ts", |
153 | 130 | "persist": { |
154 | 131 | "outputDir": ".code-pushup/{projectName}" |
155 | 132 | } |
| 133 | + }, |
| 134 | + "configurations": { |
| 135 | + "print-config": { |
| 136 | + "command": "print-config", |
| 137 | + "output": "{projectRoot}/code-pushup.config.json" |
| 138 | + } |
156 | 139 | } |
157 | 140 | }, |
158 | 141 | "code-pushup-coverage": { |
|
332 | 315 | { |
333 | 316 | "plugin": "@code-pushup/nx-plugin", |
334 | 317 | "options": { |
335 | | - "targetName": "code-pushup" |
| 318 | + "targetName": "code-pushup", |
| 319 | + "bin": "packages/cli/src/index.ts", |
| 320 | + "projectPrefix": "cli", |
| 321 | + "env": { |
| 322 | + "NODE_OPTIONS": "--import tsx", |
| 323 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 324 | + } |
336 | 325 | }, |
337 | 326 | "exclude": ["tools/**", "testing/**", "examples/**"] |
338 | 327 | }, |
339 | 328 | { |
340 | 329 | "plugin": "@code-pushup/nx-plugin", |
341 | 330 | "options": { |
342 | | - "targetName": "code-pushup-coverage" |
| 331 | + "targetName": "code-pushup-coverage", |
| 332 | + "bin": "packages/cli/src/index.ts", |
| 333 | + "env": { |
| 334 | + "NODE_OPTIONS": "--import tsx", |
| 335 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 336 | + } |
343 | 337 | }, |
344 | 338 | "exclude": ["tools/**", "testing/**", "examples/**"] |
345 | 339 | }, |
346 | 340 | { |
347 | 341 | "plugin": "@code-pushup/nx-plugin", |
348 | 342 | "options": { |
349 | | - "targetName": "code-pushup-eslint" |
| 343 | + "targetName": "code-pushup-eslint", |
| 344 | + "bin": "packages/cli/src/index.ts", |
| 345 | + "env": { |
| 346 | + "NODE_OPTIONS": "--import tsx", |
| 347 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 348 | + } |
350 | 349 | }, |
351 | 350 | "exclude": ["testing/**", "examples/**"] |
352 | 351 | }, |
353 | 352 | { |
354 | 353 | "plugin": "@code-pushup/nx-plugin", |
355 | 354 | "options": { |
356 | | - "targetName": "code-pushup-typescript" |
| 355 | + "targetName": "code-pushup-typescript", |
| 356 | + "bin": "packages/cli/src/index.ts", |
| 357 | + "env": { |
| 358 | + "NODE_OPTIONS": "--import tsx", |
| 359 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 360 | + } |
357 | 361 | }, |
358 | 362 | "exclude": [ |
359 | 363 | "packages/models/**", |
|
367 | 371 | { |
368 | 372 | "plugin": "@code-pushup/nx-plugin", |
369 | 373 | "options": { |
370 | | - "targetName": "code-pushup-jsdocs" |
| 374 | + "targetName": "code-pushup-jsdocs", |
| 375 | + "bin": "packages/cli/src/index.ts", |
| 376 | + "env": { |
| 377 | + "NODE_OPTIONS": "--import tsx", |
| 378 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 379 | + } |
371 | 380 | }, |
372 | 381 | "exclude": [ |
373 | 382 | "packages/models", |
|
380 | 389 | { |
381 | 390 | "plugin": "@code-pushup/nx-plugin", |
382 | 391 | "options": { |
383 | | - "targetName": "code-pushup-js-packages" |
| 392 | + "targetName": "code-pushup-js-packages", |
| 393 | + "bin": "packages/cli/src/index.ts", |
| 394 | + "env": { |
| 395 | + "NODE_OPTIONS": "--import tsx", |
| 396 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 397 | + } |
384 | 398 | }, |
385 | 399 | "exclude": ["packages/**", "tools/**", "testing/**", "examples/**"] |
386 | 400 | }, |
387 | 401 | { |
388 | 402 | "plugin": "@code-pushup/nx-plugin", |
389 | 403 | "options": { |
390 | | - "targetName": "code-pushup-lighthouse" |
| 404 | + "targetName": "code-pushup-lighthouse", |
| 405 | + "bin": "packages/cli/src/index.ts", |
| 406 | + "env": { |
| 407 | + "NODE_OPTIONS": "--import tsx", |
| 408 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 409 | + } |
391 | 410 | }, |
392 | 411 | "exclude": ["packages/**", "tools/**", "testing/**", "examples/**"] |
393 | 412 | }, |
394 | 413 | { |
395 | 414 | "plugin": "@code-pushup/nx-plugin", |
396 | 415 | "options": { |
397 | | - "targetName": "code-pushup-axe" |
| 416 | + "targetName": "code-pushup-axe", |
| 417 | + "bin": "packages/cli/src/index.ts", |
| 418 | + "env": { |
| 419 | + "NODE_OPTIONS": "--import tsx", |
| 420 | + "TSX_TSCONFIG_PATH": "tsconfig.base.json" |
| 421 | + } |
398 | 422 | }, |
399 | 423 | "exclude": ["packages/**", "tools/**", "testing/**", "examples/**"] |
400 | 424 | }, |
|
0 commit comments