|
1 | 1 | { |
2 | | - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 2 | "version": 1, |
4 | | - "newProjectRoot": "", |
5 | 3 | "projects": { |
| 4 | + "core": { |
| 5 | + "projectType": "library", |
| 6 | + "root": "libs/core", |
| 7 | + "sourceRoot": "libs/core/src", |
| 8 | + "prefix": "ui", |
| 9 | + "architect": { |
| 10 | + "build": { |
| 11 | + "builder": "ngx-build-plus:build", |
| 12 | + "options": { |
| 13 | + "outputPath": "dist/ui", |
| 14 | + "index": "libs/core/src/lib/index.html", |
| 15 | + "main": "libs/core/src/lib/elements.ts", |
| 16 | + "polyfills": "libs/core/src/lib/polyfills.ts", |
| 17 | + "tsConfig": "libs/core/tsconfig.lib.json", |
| 18 | + "styles": [ |
| 19 | + { |
| 20 | + "input": "libs/core/src/lib/theme.scss", |
| 21 | + "bundleName": "theme" |
| 22 | + } |
| 23 | + ] |
| 24 | + }, |
| 25 | + "configurations": { |
| 26 | + "production": { |
| 27 | + "optimization": true, |
| 28 | + "outputHashing": "none", |
| 29 | + "sourceMap": false, |
| 30 | + "extractCss": true |
| 31 | + } |
| 32 | + } |
| 33 | + }, |
| 34 | + "lint": { |
| 35 | + "builder": "@angular-devkit/build-angular:tslint", |
| 36 | + "options": { |
| 37 | + "tsConfig": [ |
| 38 | + "libs/core/tsconfig.lib.json", |
| 39 | + "libs/core/tsconfig.spec.json" |
| 40 | + ], |
| 41 | + "exclude": ["**/node_modules/**", "!libs/core/**/*"] |
| 42 | + } |
| 43 | + }, |
| 44 | + "test": { |
| 45 | + "builder": "@nrwl/jest:jest", |
| 46 | + "options": { |
| 47 | + "jestConfig": "libs/core/jest.config.js", |
| 48 | + "passWithNoTests": true |
| 49 | + } |
| 50 | + } |
| 51 | + }, |
| 52 | + "schematics": { |
| 53 | + "@nrwl/angular:component": { |
| 54 | + "styleext": "scss" |
| 55 | + } |
| 56 | + } |
| 57 | + }, |
6 | 58 | "angularapp": { |
7 | 59 | "projectType": "application", |
8 | 60 | "schematics": { |
9 | | - "@nrwl/workspace:component": { |
| 61 | + "@schematics/angular:component": { |
10 | 62 | "style": "scss" |
11 | 63 | } |
12 | 64 | }, |
|
22 | 74 | "main": "apps/angularapp/src/main.ts", |
23 | 75 | "polyfills": "apps/angularapp/src/polyfills.ts", |
24 | 76 | "tsConfig": "apps/angularapp/tsconfig.app.json", |
| 77 | + "aot": true, |
25 | 78 | "assets": [ |
26 | 79 | "apps/angularapp/src/favicon.ico", |
27 | 80 | "apps/angularapp/src/assets" |
28 | 81 | ], |
29 | | - "styles": [ |
30 | | - "apps/angularapp/src/styles.scss", |
31 | | - "dist/ngelements/theme.css" |
32 | | - ], |
33 | | - "scripts": [ |
34 | | - { |
35 | | - "input": "node_modules/document-register-element/build/document-register-element.js" |
36 | | - }, |
37 | | - "dist/ngelements/main.js" |
38 | | - ] |
| 82 | + "styles": ["apps/angularapp/src/styles.scss", "dist/ui/theme.css"], |
| 83 | + "scripts": ["dist/ui/polyfills.js", "dist/ui/main.js"] |
39 | 84 | }, |
40 | 85 | "configurations": { |
41 | 86 | "production": { |
|
50 | 95 | "sourceMap": false, |
51 | 96 | "extractCss": true, |
52 | 97 | "namedChunks": false, |
53 | | - "aot": true, |
54 | 98 | "extractLicenses": true, |
55 | 99 | "vendorChunk": false, |
56 | 100 | "buildOptimizer": true, |
|
59 | 103 | "type": "initial", |
60 | 104 | "maximumWarning": "2mb", |
61 | 105 | "maximumError": "5mb" |
| 106 | + }, |
| 107 | + { |
| 108 | + "type": "anyComponentStyle", |
| 109 | + "maximumWarning": "6kb", |
| 110 | + "maximumError": "10kb" |
62 | 111 | } |
63 | 112 | ] |
64 | 113 | } |
|
88 | 137 | "apps/angularapp/tsconfig.app.json", |
89 | 138 | "apps/angularapp/tsconfig.spec.json" |
90 | 139 | ], |
91 | | - "exclude": [ |
92 | | - "**/node_modules/**", |
93 | | - "!apps/angularapp/**" |
94 | | - ] |
| 140 | + "exclude": ["**/node_modules/**", "!apps/angularapp/**/*"] |
95 | 141 | } |
96 | 142 | }, |
97 | 143 | "test": { |
98 | 144 | "builder": "@nrwl/jest:jest", |
99 | 145 | "options": { |
100 | 146 | "jestConfig": "apps/angularapp/jest.config.js", |
101 | | - "tsConfig": "apps/angularapp/tsconfig.spec.json", |
102 | | - "setupFile": "apps/angularapp/src/test-setup.ts" |
| 147 | + "passWithNoTests": true |
103 | 148 | } |
104 | 149 | } |
105 | 150 | } |
|
125 | 170 | "lint": { |
126 | 171 | "builder": "@angular-devkit/build-angular:tslint", |
127 | 172 | "options": { |
128 | | - "tsConfig": "apps/angularapp-e2e/tsconfig.e2e.json", |
129 | | - "exclude": [ |
130 | | - "**/node_modules/**", |
131 | | - "!apps/angularapp-e2e/**" |
132 | | - ] |
| 173 | + "tsConfig": ["apps/angularapp-e2e/tsconfig.e2e.json"], |
| 174 | + "exclude": ["**/node_modules/**", "!apps/angularapp-e2e/**/*"] |
133 | 175 | } |
134 | 176 | } |
135 | 177 | } |
|
152 | 194 | "apps/reactapp/src/favicon.ico", |
153 | 195 | "apps/reactapp/src/assets" |
154 | 196 | ], |
155 | | - "styles": [ |
156 | | - "apps/reactapp/src/styles.scss", |
157 | | - "dist/ngelements/theme.css" |
158 | | - ], |
159 | | - "scripts": [ |
160 | | - "dist/ngelements/polyfills.js", |
161 | | - "dist/ngelements/main.js" |
162 | | - ] |
| 197 | + "styles": ["apps/reactapp/src/styles.scss", "dist/ui/theme.css"], |
| 198 | + "scripts": ["dist/ui/polyfills.js", "dist/ui/main.js"], |
| 199 | + "webpackConfig": "@nrwl/react/plugins/webpack" |
163 | 200 | }, |
164 | 201 | "configurations": { |
165 | 202 | "production": { |
|
198 | 235 | } |
199 | 236 | }, |
200 | 237 | "lint": { |
201 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 238 | + "builder": "@nrwl/linter:lint", |
202 | 239 | "options": { |
| 240 | + "linter": "eslint", |
203 | 241 | "tsConfig": [ |
204 | 242 | "apps/reactapp/tsconfig.app.json", |
205 | 243 | "apps/reactapp/tsconfig.spec.json" |
206 | 244 | ], |
207 | | - "exclude": [ |
208 | | - "**/node_modules/**", |
209 | | - "!apps/reactapp/**" |
210 | | - ] |
| 245 | + "exclude": ["**/node_modules/**", "!apps/reactapp/**/*"] |
211 | 246 | } |
212 | 247 | }, |
213 | 248 | "test": { |
214 | 249 | "builder": "@nrwl/jest:jest", |
215 | 250 | "options": { |
216 | 251 | "jestConfig": "apps/reactapp/jest.config.js", |
217 | | - "tsConfig": "apps/reactapp/tsconfig.spec.json" |
| 252 | + "passWithNoTests": true |
218 | 253 | } |
219 | 254 | } |
220 | 255 | } |
|
238 | 273 | } |
239 | 274 | }, |
240 | 275 | "lint": { |
241 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 276 | + "builder": "@nrwl/linter:lint", |
242 | 277 | "options": { |
243 | | - "tsConfig": "apps/reactapp-e2e/tsconfig.e2e.json", |
244 | | - "exclude": [ |
245 | | - "**/node_modules/**", |
246 | | - "!apps/reactapp-e2e/**" |
247 | | - ] |
| 278 | + "linter": "eslint", |
| 279 | + "tsConfig": ["apps/reactapp-e2e/tsconfig.e2e.json"], |
| 280 | + "exclude": ["**/node_modules/**", "!apps/reactapp-e2e/**/*"] |
248 | 281 | } |
249 | 282 | } |
250 | 283 | } |
251 | | - }, |
252 | | - "core": { |
253 | | - "projectType": "library", |
254 | | - "root": "libs/core", |
255 | | - "sourceRoot": "libs/core/src", |
256 | | - "prefix": "ui", |
257 | | - "architect": { |
258 | | - "build": { |
259 | | - "builder": "ngx-build-plus:build", |
260 | | - "options": { |
261 | | - "outputPath": "dist/ngelements", |
262 | | - "index": "libs/core/src/lib/index.html", |
263 | | - "main": "libs/core/src/lib/elements.ts", |
264 | | - "polyfills": "libs/core/src/lib/polyfills.ts", |
265 | | - "tsConfig": "libs/core/tsconfig.lib.json", |
266 | | - "styles": [ |
267 | | - { |
268 | | - "input": "libs/core/src/lib/theme.scss", |
269 | | - "lazy": true |
270 | | - } |
271 | | - ] |
272 | | - }, |
273 | | - "configurations": { |
274 | | - "production": { |
275 | | - "optimization": true, |
276 | | - "outputHashing": "none", |
277 | | - "sourceMap": false, |
278 | | - "extractCss": true |
279 | | - } |
280 | | - } |
281 | | - }, |
282 | | - "lint": { |
283 | | - "builder": "@angular-devkit/build-angular:tslint", |
284 | | - "options": { |
285 | | - "tsConfig": [ |
286 | | - "libs/core/tsconfig.lib.json", |
287 | | - "libs/core/tsconfig.spec.json" |
288 | | - ], |
289 | | - "exclude": [ |
290 | | - "**/node_modules/**", |
291 | | - "!libs/core/**" |
292 | | - ] |
293 | | - } |
294 | | - }, |
295 | | - "test": { |
296 | | - "builder": "@nrwl/jest:jest", |
297 | | - "options": { |
298 | | - "jestConfig": "libs/core/jest.config.js", |
299 | | - "tsConfig": "libs/core/tsconfig.spec.json", |
300 | | - "setupFile": "libs/core/src/test-setup.ts" |
301 | | - } |
302 | | - } |
303 | | - }, |
304 | | - "schematics": { |
305 | | - "@nrwl/angular:component": { |
306 | | - "styleext": "scss" |
307 | | - } |
308 | | - } |
309 | 284 | } |
310 | 285 | }, |
311 | 286 | "cli": { |
312 | | - "warnings": { |
313 | | - "typescriptMismatch": false, |
314 | | - "versionMismatch": false |
315 | | - }, |
316 | | - "defaultCollection": "@nrwl/angular" |
| 287 | + "defaultCollection": "@nrwl/angular", |
| 288 | + "analytics": "bb35317c-f379-408a-95da-5e2b78f74c78" |
317 | 289 | }, |
318 | 290 | "schematics": { |
| 291 | + "@nrwl/workspace": { |
| 292 | + "library": { |
| 293 | + "linter": "tslint" |
| 294 | + } |
| 295 | + }, |
| 296 | + "@nrwl/cypress": { |
| 297 | + "cypress-project": { |
| 298 | + "linter": "tslint" |
| 299 | + } |
| 300 | + }, |
| 301 | + "@nrwl/node": { |
| 302 | + "application": { |
| 303 | + "linter": "tslint" |
| 304 | + }, |
| 305 | + "library": { |
| 306 | + "linter": "tslint" |
| 307 | + } |
| 308 | + }, |
| 309 | + "@nrwl/nest": { |
| 310 | + "application": { |
| 311 | + "linter": "tslint" |
| 312 | + }, |
| 313 | + "library": { |
| 314 | + "linter": "tslint" |
| 315 | + } |
| 316 | + }, |
| 317 | + "@nrwl/express": { |
| 318 | + "application": { |
| 319 | + "linter": "tslint" |
| 320 | + }, |
| 321 | + "library": { |
| 322 | + "linter": "tslint" |
| 323 | + } |
| 324 | + }, |
319 | 325 | "@nrwl/angular:application": { |
320 | 326 | "unitTestRunner": "jest", |
321 | 327 | "e2eTestRunner": "cypress" |
322 | 328 | }, |
323 | 329 | "@nrwl/angular:library": { |
324 | 330 | "unitTestRunner": "jest" |
| 331 | + }, |
| 332 | + "@nrwl/react": { |
| 333 | + "application": { |
| 334 | + "style": "scss", |
| 335 | + "linter": "eslint", |
| 336 | + "babel": true |
| 337 | + }, |
| 338 | + "component": { |
| 339 | + "style": "scss" |
| 340 | + }, |
| 341 | + "library": { |
| 342 | + "style": "scss", |
| 343 | + "linter": "eslint" |
| 344 | + } |
325 | 345 | } |
326 | 346 | }, |
327 | | - "defaultProject": "angularapp" |
| 347 | + "defaultProject": "reactapp" |
328 | 348 | } |
0 commit comments