|
8 | 8 | "schematics": { |
9 | 9 | "@schematics/angular:component": { |
10 | 10 | "style": "scss" |
| 11 | + }, |
| 12 | + "@schematics/angular:application": { |
| 13 | + "strict": true |
11 | 14 | } |
12 | 15 | }, |
13 | 16 | "root": "", |
|
22 | 25 | "main": "src/main.ts", |
23 | 26 | "polyfills": "src/polyfills.ts", |
24 | 27 | "tsConfig": "tsconfig.app.json", |
25 | | - "aot": true, |
| 28 | + "inlineStyleLanguage": "scss", |
26 | 29 | "assets": [ |
27 | 30 | "src/favicon.ico", |
28 | 31 | "src/assets", |
|
36 | 39 | }, |
37 | 40 | "configurations": { |
38 | 41 | "production": { |
39 | | - "fileReplacements": [ |
40 | | - { |
41 | | - "replace": "src/environments/environment.ts", |
42 | | - "with": "src/environments/environment.prod.ts" |
43 | | - } |
44 | | - ], |
45 | | - "optimization": true, |
46 | | - "outputHashing": "all", |
47 | | - "sourceMap": false, |
48 | | - "extractCss": true, |
49 | | - "namedChunks": false, |
50 | | - "extractLicenses": true, |
51 | | - "vendorChunk": false, |
52 | | - "buildOptimizer": true, |
53 | 42 | "budgets": [ |
54 | 43 | { |
55 | 44 | "type": "initial", |
|
61 | 50 | "maximumWarning": "6kb", |
62 | 51 | "maximumError": "10kb" |
63 | 52 | } |
64 | | - ] |
| 53 | + ], |
| 54 | + "fileReplacements": [ |
| 55 | + { |
| 56 | + "replace": "src/environments/environment.ts", |
| 57 | + "with": "src/environments/environment.prod.ts" |
| 58 | + } |
| 59 | + ], |
| 60 | + "outputHashing": "all" |
| 61 | + }, |
| 62 | + "development": { |
| 63 | + "buildOptimizer": false, |
| 64 | + "optimization": false, |
| 65 | + "vendorChunk": true, |
| 66 | + "extractLicenses": false, |
| 67 | + "sourceMap": true, |
| 68 | + "namedChunks": true |
65 | 69 | } |
66 | | - } |
| 70 | + }, |
| 71 | + "defaultConfiguration": "production" |
67 | 72 | }, |
68 | 73 | "serve": { |
69 | 74 | "builder": "@angular-devkit/build-angular:dev-server", |
70 | | - "options": { |
71 | | - "browserTarget": "ngu-carousel-example:build" |
72 | | - }, |
73 | 75 | "configurations": { |
74 | 76 | "production": { |
75 | 77 | "browserTarget": "ngu-carousel-example:build:production" |
| 78 | + }, |
| 79 | + "development": { |
| 80 | + "browserTarget": "ngu-carousel-example:build:development" |
76 | 81 | } |
77 | | - } |
| 82 | + }, |
| 83 | + "defaultConfiguration": "development" |
78 | 84 | }, |
79 | 85 | "extract-i18n": { |
80 | 86 | "builder": "@angular-devkit/build-angular:extract-i18n", |
|
89 | 95 | "polyfills": "src/polyfills.ts", |
90 | 96 | "tsConfig": "tsconfig.spec.json", |
91 | 97 | "karmaConfig": "karma.conf.js", |
| 98 | + "inlineStyleLanguage": "scss", |
92 | 99 | "assets": [ |
93 | 100 | "src/favicon.ico", |
94 | 101 | "src/assets" |
95 | 102 | ], |
96 | 103 | "styles": [ |
97 | | - "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", |
98 | 104 | "src/styles.scss" |
99 | 105 | ], |
100 | 106 | "scripts": [] |
101 | 107 | } |
102 | 108 | }, |
103 | | - "lint": { |
104 | | - "builder": "@angular-devkit/build-angular:tslint", |
105 | | - "options": { |
106 | | - "tsConfig": [ |
107 | | - "tsconfig.app.json", |
108 | | - "tsconfig.spec.json", |
109 | | - "e2e/tsconfig.json" |
110 | | - ], |
111 | | - "exclude": [ |
112 | | - "**/node_modules/**" |
113 | | - ] |
114 | | - } |
115 | | - }, |
116 | 109 | "e2e": { |
117 | 110 | "builder": "@angular-devkit/build-angular:protractor", |
118 | 111 | "options": { |
|
134 | 127 | "prefix": "ngu", |
135 | 128 | "architect": { |
136 | 129 | "build": { |
137 | | - "builder": "@angular-devkit/build-ng-packagr:build", |
| 130 | + "builder": "@angular-devkit/build-angular:ng-packagr", |
138 | 131 | "options": { |
139 | | - "tsConfig": "projects/ngu-carousel/tsconfig.lib.json", |
140 | 132 | "project": "projects/ngu-carousel/ng-package.json" |
141 | 133 | }, |
142 | 134 | "configurations": { |
143 | 135 | "production": { |
144 | 136 | "tsConfig": "projects/ngu-carousel/tsconfig.lib.prod.json" |
| 137 | + }, |
| 138 | + "development": { |
| 139 | + "tsConfig": "projects/ngu-carousel/tsconfig.lib.json" |
145 | 140 | } |
146 | | - } |
| 141 | + }, |
| 142 | + "defaultConfiguration": "production" |
147 | 143 | }, |
148 | 144 | "test": { |
149 | 145 | "builder": "@angular-devkit/build-angular:karma", |
|
152 | 148 | "tsConfig": "projects/ngu-carousel/tsconfig.spec.json", |
153 | 149 | "karmaConfig": "projects/ngu-carousel/karma.conf.js" |
154 | 150 | } |
155 | | - }, |
156 | | - "lint": { |
157 | | - "builder": "@angular-devkit/build-angular:tslint", |
158 | | - "options": { |
159 | | - "tsConfig": [ |
160 | | - "projects/ngu-carousel/tsconfig.lib.json", |
161 | | - "projects/ngu-carousel/tsconfig.spec.json" |
162 | | - ], |
163 | | - "exclude": [ |
164 | | - "**/node_modules/**" |
165 | | - ] |
166 | | - } |
167 | 151 | } |
| 152 | + |
168 | 153 | } |
169 | 154 | } |
170 | 155 | }, |
171 | | - "defaultProject": "ngu-carousel-example", |
172 | | - "cli": { |
173 | | - "analytics": false |
174 | | - } |
| 156 | + "defaultProject": "ngu-carousel-example" |
175 | 157 | } |
0 commit comments