|
49 | 49 | } |
50 | 50 | ], |
51 | 51 | "sharedGlobals": [ |
52 | | - { "runtime": "node -e \"console.log(require('os').platform())\"" }, |
53 | | - { "runtime": "node -v" }, |
54 | | - { "runtime": "npm -v" } |
| 52 | + { |
| 53 | + "runtime": "node -e \"console.log(require('os').platform())\"" |
| 54 | + }, |
| 55 | + { |
| 56 | + "runtime": "node -v" |
| 57 | + }, |
| 58 | + { |
| 59 | + "runtime": "npm -v" |
| 60 | + } |
55 | 61 | ] |
56 | 62 | }, |
57 | 63 | "targetDefaults": { |
| 64 | + "lint": { |
| 65 | + "dependsOn": ["eslint-formatter-multi:build"], |
| 66 | + "inputs": ["lint-eslint-inputs"], |
| 67 | + "outputs": ["{projectRoot}/.eslint/**/*"], |
| 68 | + "cache": true, |
| 69 | + "executor": "nx:run-commands", |
| 70 | + "options": { |
| 71 | + "command": "eslint", |
| 72 | + "args": [ |
| 73 | + "{projectRoot}/**/*.ts", |
| 74 | + "{projectRoot}/package.json", |
| 75 | + "--config={projectRoot}/eslint.config.js", |
| 76 | + "--max-warnings=0", |
| 77 | + "--no-warn-ignored", |
| 78 | + "--error-on-unmatched-pattern=false", |
| 79 | + "--format=./tools/eslint-formatter-multi/dist/src/index.js" |
| 80 | + ], |
| 81 | + "env": { |
| 82 | + "ESLINT_FORMATTER_CONFIG": "{\"outputDir\":\"{projectRoot}/.eslint\"}" |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
58 | 86 | "build": { |
59 | 87 | "dependsOn": ["^build"], |
60 | 88 | "inputs": ["production", "^production"], |
|
69 | 97 | } |
70 | 98 | }, |
71 | 99 | "unit-test": { |
| 100 | + "cache": true, |
72 | 101 | "outputs": [ |
73 | 102 | "{workspaceRoot}/coverage/{projectName}/unit-tests/lcov.info" |
74 | 103 | ], |
|
81 | 110 | } |
82 | 111 | }, |
83 | 112 | "int-test": { |
| 113 | + "cache": true, |
84 | 114 | "outputs": ["{workspaceRoot}/coverage/{projectName}/int-tests/lcov.info"], |
85 | 115 | "executor": "@nx/vite:test", |
86 | 116 | "options": { |
|
95 | 125 | "inputs": ["default"], |
96 | 126 | "cache": true |
97 | 127 | }, |
98 | | - "lint": { |
99 | | - "inputs": ["lint-eslint-inputs"], |
100 | | - "executor": "@nx/eslint:lint", |
101 | | - "outputs": ["{options.outputFile}"], |
102 | | - "cache": true, |
103 | | - "options": { |
104 | | - "errorOnUnmatchedPattern": false, |
105 | | - "maxWarnings": 0, |
106 | | - "lintFilePatterns": [ |
107 | | - "{projectRoot}/**/*.ts", |
108 | | - "{projectRoot}/package.json" |
109 | | - ] |
110 | | - } |
111 | | - }, |
112 | | - "lint-report": { |
113 | | - "inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"], |
114 | | - "outputs": ["{projectRoot}/.eslint/eslint-report*.json"], |
115 | | - "cache": true, |
116 | | - "executor": "@nx/linter:eslint", |
117 | | - "options": { |
118 | | - "errorOnUnmatchedPattern": false, |
119 | | - "maxWarnings": 0, |
120 | | - "format": "json", |
121 | | - "outputFile": "{projectRoot}/.eslint/eslint-report.json", |
122 | | - "lintFilePatterns": [ |
123 | | - "{projectRoot}/**/*.ts", |
124 | | - "{projectRoot}/package.json" |
125 | | - ] |
126 | | - } |
127 | | - }, |
128 | 128 | "nxv-pkg-install": { |
129 | 129 | "parallelism": false |
130 | 130 | }, |
|
0 commit comments