|
2 | 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
| 5 | + "schematics": { |
| 6 | + "@schematics/angular:component": { |
| 7 | + "style": "scss", |
| 8 | + "standalone": true, |
| 9 | + "changeDetection": "OnPush", |
| 10 | + "viewEncapsulation": "Emulated" |
| 11 | + }, |
| 12 | + "@schematics/angular:directive": { |
| 13 | + "standalone": true |
| 14 | + }, |
| 15 | + "@schematics/angular:pipe": { |
| 16 | + "standalone": true |
| 17 | + }, |
| 18 | + "@schematics/angular:application": { |
| 19 | + "strict": true |
| 20 | + } |
| 21 | + }, |
5 | 22 | "projects": { |
6 | 23 | "angular-loader": { |
7 | 24 | "root": "", |
8 | 25 | "sourceRoot": "src", |
9 | 26 | "projectType": "application", |
10 | 27 | "prefix": "", |
11 | | - "schematics": { |
12 | | - "@schematics/angular:component": { |
13 | | - "style": "scss", |
14 | | - "standalone": true, |
15 | | - "changeDetection": "OnPush", |
16 | | - "viewEncapsulation": "ShadowDom" |
17 | | - }, |
18 | | - "@schematics/angular:application": { |
19 | | - "strict": true |
20 | | - } |
21 | | - }, |
22 | 28 | "architect": { |
23 | 29 | "build": { |
24 | 30 | "builder": "@angular-devkit/build-angular:application", |
25 | 31 | "options": { |
26 | 32 | "outputPath": "dist/angular-loader", |
27 | 33 | "browser": "src/main.ts", |
28 | 34 | "index": "src/index.html", |
29 | | - "tsConfig": "src/tsconfig.app.json", |
| 35 | + "tsConfig": "tsconfig.app.json", |
30 | 36 | "assets": ["src/favicon.ico", "src/assets"], |
31 | 37 | "styles": [ |
32 | 38 | "node_modules/highlight.js/styles/github.css", |
33 | 39 | "src/styles.scss" |
34 | 40 | ], |
35 | 41 | "scripts": [], |
36 | | - "extractLicenses": false, |
37 | | - "sourceMap": true, |
38 | | - "optimization": false, |
39 | 42 | "namedChunks": true |
40 | 43 | }, |
41 | 44 | "configurations": { |
42 | 45 | "production": { |
43 | 46 | "define": { |
44 | 47 | "VERSION": "'<%version%>'" |
45 | 48 | }, |
46 | | - "optimization": true, |
47 | | - "sourceMap": false, |
48 | | - "namedChunks": false, |
49 | | - "extractLicenses": true, |
50 | 49 | "budgets": [ |
51 | 50 | { |
52 | 51 | "type": "initial", |
53 | | - "maximumWarning": "500kb", |
54 | | - "maximumError": "1mb" |
| 52 | + "maximumWarning": "2mb", |
| 53 | + "maximumError": "2mb" |
55 | 54 | }, |
56 | 55 | { |
57 | 56 | "type": "anyComponentStyle", |
58 | | - "maximumWarning": "9kb", |
59 | | - "maximumError": "10kb" |
| 57 | + "maximumWarning": "15kb", |
| 58 | + "maximumError": "15kb" |
60 | 59 | } |
61 | 60 | ], |
62 | | - "fileReplacements": [ |
63 | | - { |
64 | | - "replace": "src/environments/environment.ts", |
65 | | - "with": "src/environments/environment.prod.ts" |
66 | | - } |
67 | | - ] |
| 61 | + "outputHashing": "all" |
68 | 62 | }, |
69 | 63 | "development": { |
70 | | - "define": { |
71 | | - "VERSION": "'v0.0.1'" |
72 | | - }, |
73 | 64 | "optimization": false, |
74 | 65 | "extractLicenses": false, |
75 | 66 | "sourceMap": true |
|
88 | 79 | } |
89 | 80 | } |
90 | 81 | }, |
91 | | - "extract-i18n": { |
92 | | - "builder": "@angular-devkit/build-angular:extract-i18n", |
93 | | - "options": { |
94 | | - "buildTarget": "angular-loader:build" |
95 | | - } |
96 | | - }, |
97 | 82 | "test": { |
98 | | - "builder": "@angular-devkit/build-angular:karma", |
| 83 | + "builder": "@angular-devkit/build-angular:web-test-runner", |
99 | 84 | "options": { |
100 | | - "main": "src/test.ts", |
101 | | - "polyfills": "src/polyfills.ts", |
102 | | - "tsConfig": "src/tsconfig.spec.json", |
103 | | - "karmaConfig": "src/karma.conf.js", |
| 85 | + "tsConfig": "tsconfig.spec.json", |
| 86 | + "inlineStyleLanguage": "scss", |
| 87 | + "assets": [ |
| 88 | + "src/favicon.ico", |
| 89 | + "src/assets", |
| 90 | + "src/robots.txt", |
| 91 | + "src/sitemap.xml" |
| 92 | + ], |
| 93 | + "polyfills": ["zone.js", "zone.js/testing"], |
104 | 94 | "styles": ["src/styles.scss"], |
105 | | - "scripts": [], |
106 | | - "assets": ["src/favicon.ico", "src/assets"] |
| 95 | + "scripts": [] |
107 | 96 | } |
108 | 97 | }, |
109 | 98 | "lint": { |
|
134 | 123 | } |
135 | 124 | }, |
136 | 125 | "defaultConfiguration": "production" |
137 | | - }, |
138 | | - "test": { |
139 | | - "builder": "@angular-devkit/build-angular:karma", |
140 | | - "options": { |
141 | | - "main": "projects/ngx-loader-indicator-lib/src/test.ts", |
142 | | - "polyfills": "src/polyfills.ts", |
143 | | - "tsConfig": "projects/ngx-loader-indicator-lib/tsconfig.spec.json", |
144 | | - "karmaConfig": "projects/ngx-loader-indicator-lib/karma.conf.js" |
145 | | - } |
146 | 126 | } |
147 | 127 | } |
148 | 128 | } |
|
0 commit comments