|
15 | 15 | "!{projectRoot}/**/*.md", |
16 | 16 | "!{projectRoot}/docs/**/*", |
17 | 17 | "!{projectRoot}/coverage/**/*", |
18 | | - "sharedGlobals" |
| 18 | + "sharedGlobals", |
| 19 | + "!{projectRoot}/.eslintrc.json", |
| 20 | + "!{projectRoot}/eslint.config.mjs", |
| 21 | + "!{projectRoot}/tsconfig.spec.json", |
| 22 | + "!{projectRoot}/src/test-setup.[jt]s", |
| 23 | + "!{projectRoot}/test-setup.[jt]s" |
19 | 24 | ], |
20 | 25 | "testing": [ |
21 | 26 | "production", |
|
65 | 70 | "targetDefaults": { |
66 | 71 | "build": { |
67 | 72 | "inputs": ["production", "^production", "buildConfig"], |
68 | | - "dependsOn": ["^build"] |
| 73 | + "dependsOn": ["^build"], |
| 74 | + "cache": true, |
| 75 | + "outputs": ["{projectRoot}/dist"] |
69 | 76 | }, |
70 | 77 | "build:main": { |
71 | 78 | "inputs": ["production", "^production", "buildConfig"], |
72 | | - "dependsOn": ["^build:main"] |
| 79 | + "dependsOn": ["^build:main"], |
| 80 | + "cache": true, |
| 81 | + "outputs": [ |
| 82 | + "{projectRoot}/dist/main", |
| 83 | + "{projectRoot}/dist/tsconfig.tsbuildinfo" |
| 84 | + ] |
73 | 85 | }, |
74 | 86 | "build:module": { |
75 | 87 | "inputs": ["production", "^production", "buildConfig"], |
76 | | - "dependsOn": ["^build:module"] |
| 88 | + "dependsOn": ["^build:module"], |
| 89 | + "cache": true, |
| 90 | + "outputs": [ |
| 91 | + "{projectRoot}/dist/module", |
| 92 | + "{projectRoot}/dist/tsconfig.module.tsbuildinfo" |
| 93 | + ] |
77 | 94 | }, |
78 | 95 | "build:umd": { |
79 | 96 | "inputs": ["production", "^production", "buildConfig"], |
80 | | - "dependsOn": ["^build:umd"] |
| 97 | + "dependsOn": ["^build:umd"], |
| 98 | + "cache": true, |
| 99 | + "outputs": ["{projectRoot}/dist/umd"] |
81 | 100 | }, |
82 | 101 | "webpack:build": { |
83 | 102 | "inputs": ["production", "^production", "buildConfig"], |
84 | | - "dependsOn": ["^webpack:build"] |
| 103 | + "dependsOn": ["^webpack:build"], |
| 104 | + "cache": true, |
| 105 | + "outputs": ["{projectRoot}/dist"] |
85 | 106 | }, |
86 | 107 | "test": { |
87 | 108 | "inputs": ["testing", "^production"], |
88 | | - "dependsOn": ["^build"] |
| 109 | + "dependsOn": ["^build"], |
| 110 | + "cache": true, |
| 111 | + "outputs": ["{projectRoot}/coverage"] |
89 | 112 | }, |
90 | 113 | "test:types": { |
91 | 114 | "inputs": ["testing", "^production"], |
92 | | - "dependsOn": ["^build"] |
| 115 | + "dependsOn": ["build:module"], |
| 116 | + "cache": true, |
| 117 | + "outputs": [] |
93 | 118 | }, |
94 | 119 | "test:unit": { |
95 | | - "inputs": ["testing", "^production"] |
| 120 | + "inputs": ["testing", "^production"], |
| 121 | + "cache": true, |
| 122 | + "outputs": ["{projectRoot}/coverage"] |
96 | 123 | }, |
97 | 124 | "test:coverage": { |
98 | 125 | "inputs": ["testing", "^production"], |
99 | | - "dependsOn": ["^build"] |
| 126 | + "dependsOn": ["^build"], |
| 127 | + "cache": true, |
| 128 | + "outputs": ["{projectRoot}/coverage"] |
100 | 129 | }, |
101 | 130 | "test:integration": { |
102 | | - "inputs": ["testing", "^production"] |
| 131 | + "inputs": ["testing", "^production"], |
| 132 | + "cache": true, |
| 133 | + "outputs": ["{projectRoot}/coverage"] |
103 | 134 | }, |
104 | 135 | "test:ci": { |
105 | | - "inputs": ["testing", "^production"] |
| 136 | + "inputs": ["testing", "^production"], |
| 137 | + "cache": true, |
| 138 | + "outputs": ["{projectRoot}/coverage"] |
106 | 139 | }, |
107 | 140 | "vite:test": { |
108 | | - "inputs": ["testing", "^production"] |
| 141 | + "inputs": ["testing", "^production"], |
| 142 | + "cache": true, |
| 143 | + "outputs": ["{projectRoot}/coverage"] |
109 | 144 | }, |
110 | 145 | "lint": { |
111 | | - "inputs": ["linting"] |
| 146 | + "inputs": ["linting"], |
| 147 | + "cache": true, |
| 148 | + "outputs": [] |
112 | 149 | }, |
113 | 150 | "format": { |
114 | | - "inputs": ["linting"] |
| 151 | + "inputs": ["linting"], |
| 152 | + "cache": true, |
| 153 | + "outputs": [] |
115 | 154 | }, |
116 | 155 | "typecheck": { |
117 | | - "inputs": ["production", "^production", "{projectRoot}/tsconfig*.json"] |
| 156 | + "inputs": ["production", "^production", "{projectRoot}/tsconfig*.json"], |
| 157 | + "cache": true, |
| 158 | + "outputs": [] |
118 | 159 | }, |
119 | 160 | "docs": { |
120 | | - "inputs": ["docs"] |
| 161 | + "inputs": ["docs"], |
| 162 | + "cache": true, |
| 163 | + "outputs": ["{projectRoot}/docs"] |
121 | 164 | }, |
122 | 165 | "docs:json": { |
123 | 166 | "inputs": ["docs"], |
124 | | - "dependsOn": ["^docs", "^build"] |
| 167 | + "dependsOn": ["^docs", "^build"], |
| 168 | + "cache": true, |
| 169 | + "outputs": ["{projectRoot}/docs"] |
125 | 170 | }, |
126 | 171 | "clean": { |
127 | | - "inputs": [] |
| 172 | + "inputs": [], |
| 173 | + "cache": false |
128 | 174 | }, |
129 | 175 | "nx-release-publish": { |
130 | 176 | "options": { |
|
0 commit comments