|
1 | 1 | { |
2 | | - "$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json", |
| 2 | + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 3 | "version": 1, |
4 | 4 | "cli": { |
5 | 5 | "packageManager": "yarn" |
6 | 6 | }, |
7 | 7 | "newProjectRoot": "projects", |
8 | 8 | "projects": { |
9 | | - "cli-hello-world": { |
| 9 | + "cli-hello-world-ivy": { |
10 | 10 | "root": "", |
| 11 | + "sourceRoot": "src", |
11 | 12 | "projectType": "application", |
| 13 | + "prefix": "app", |
| 14 | + "schematics": {}, |
12 | 15 | "architect": { |
13 | 16 | "build": { |
14 | 17 | "builder": "@angular-devkit/build-angular:browser", |
|
19 | 22 | "polyfills": "src/polyfills.ts", |
20 | 23 | "tsConfig": "src/tsconfig.app.json", |
21 | 24 | "assets": [ |
22 | | - { |
23 | | - "glob": "assets", |
24 | | - "input": "/src", |
25 | | - "output": "/" |
26 | | - }, |
27 | | - { |
28 | | - "glob": "favicon.ico", |
29 | | - "input": "/src", |
30 | | - "output": "/" |
31 | | - } |
| 25 | + "src/favicon.ico", |
| 26 | + "src/assets" |
32 | 27 | ], |
33 | 28 | "styles": [ |
34 | | - { |
35 | | - "input": "src/styles.css" |
36 | | - } |
| 29 | + "src/styles.css" |
37 | 30 | ], |
38 | 31 | "scripts": [] |
39 | 32 | }, |
40 | 33 | "configurations": { |
41 | | - "dev": { |
| 34 | + "production": { |
42 | 35 | "fileReplacements": [ |
43 | 36 | { |
44 | | - "from": "src/environments/environment.ts", |
45 | | - "to": "dist/environments/environment.ts" |
| 37 | + "replace": "src/environments/environment.ts", |
| 38 | + "with": "src/environments/environment.prod.ts" |
46 | 39 | } |
47 | | - ] |
48 | | - }, |
49 | | - "production": { |
| 40 | + ], |
50 | 41 | "optimization": true, |
51 | 42 | "outputHashing": "all", |
52 | | - "sourceMap": true, |
| 43 | + "sourceMap": false, |
53 | 44 | "extractCss": true, |
54 | 45 | "namedChunks": false, |
55 | 46 | "aot": true, |
56 | 47 | "extractLicenses": true, |
57 | 48 | "vendorChunk": false, |
58 | 49 | "buildOptimizer": true, |
59 | | - "fileReplacements": [ |
| 50 | + "budgets": [ |
60 | 51 | { |
61 | | - "src": "src/environments/environment.ts", |
62 | | - "replaceWith": "src/environments/environment.prod.ts" |
| 52 | + "type": "initial", |
| 53 | + "maximumWarning": "2mb", |
| 54 | + "maximumError": "5mb" |
63 | 55 | } |
64 | 56 | ] |
65 | 57 | } |
|
68 | 60 | "serve": { |
69 | 61 | "builder": "@angular-devkit/build-angular:dev-server", |
70 | 62 | "options": { |
71 | | - "browserTarget": "cli-hello-world:build" |
| 63 | + "browserTarget": "cli-hello-world-ivy:build" |
72 | 64 | }, |
73 | 65 | "configurations": { |
74 | | - "dev": { |
75 | | - "browserTarget": "cli-hello-world:build:dev" |
76 | | - }, |
77 | 66 | "production": { |
78 | | - "browserTarget": "cli-hello-world:build:production" |
| 67 | + "browserTarget": "cli-hello-world-ivy:build:production" |
79 | 68 | }, |
80 | 69 | "ci": { |
81 | 70 | "progress": false |
82 | 71 | }, |
83 | 72 | "ci-production": { |
84 | | - "browserTarget": "cli-hello-world:build:production", |
| 73 | + "browserTarget": "cli-hello-world-ivy:build:production", |
85 | 74 | "progress": false |
86 | 75 | } |
87 | 76 | } |
88 | 77 | }, |
89 | 78 | "extract-i18n": { |
90 | 79 | "builder": "@angular-devkit/build-angular:extract-i18n", |
91 | 80 | "options": { |
92 | | - "browserTarget": "cli-hello-world:build" |
| 81 | + "browserTarget": "cli-hello-world-ivy:build" |
93 | 82 | } |
94 | 83 | }, |
95 | 84 | "test": { |
96 | 85 | "builder": "@angular-devkit/build-angular:karma", |
97 | 86 | "options": { |
98 | 87 | "main": "src/test.ts", |
99 | 88 | "polyfills": "src/polyfills.ts", |
100 | | - "karmaConfig": "./karma.conf.js", |
101 | 89 | "tsConfig": "src/tsconfig.spec.json", |
102 | | - "scripts": [], |
| 90 | + "karmaConfig": "src/karma.conf.js", |
103 | 91 | "styles": [ |
104 | | - { |
105 | | - "input": "src/styles.css" |
106 | | - } |
| 92 | + "src/styles.css" |
107 | 93 | ], |
| 94 | + "scripts": [], |
108 | 95 | "assets": [ |
109 | | - { |
110 | | - "glob": "assets", |
111 | | - "input": "/src", |
112 | | - "output": "/" |
113 | | - }, |
114 | | - { |
115 | | - "glob": "favicon.ico", |
116 | | - "input": "/src", |
117 | | - "output": "/" |
118 | | - } |
| 96 | + "src/favicon.ico", |
| 97 | + "src/assets" |
119 | 98 | ] |
120 | 99 | } |
121 | 100 | }, |
|
133 | 112 | } |
134 | 113 | } |
135 | 114 | }, |
136 | | - "cli-hello-world-e2e": { |
137 | | - "root": "", |
| 115 | + "cli-hello-world-ivy-e2e": { |
| 116 | + "root": "e2e/", |
138 | 117 | "projectType": "application", |
139 | | - "cli": {}, |
140 | | - "schematics": {}, |
| 118 | + "prefix": "", |
141 | 119 | "architect": { |
142 | 120 | "e2e": { |
143 | 121 | "builder": "@angular-devkit/build-angular:protractor", |
144 | 122 | "options": { |
145 | | - "protractorConfig": "./protractor.conf.js", |
146 | | - "devServerTarget": "cli-hello-world:serve" |
| 123 | + "protractorConfig": "e2e/protractor.conf.js", |
| 124 | + "devServerTarget": "cli-hello-world-ivy:serve" |
147 | 125 | }, |
148 | 126 | "configurations": { |
149 | 127 | "production": { |
150 | | - "devServerTarget": "cli-hello-world:serve:production" |
| 128 | + "devServerTarget": "cli-hello-world-ivy:serve:production" |
151 | 129 | }, |
152 | 130 | "ci": { |
153 | | - "devServerTarget": "cli-hello-world:serve:ci" |
| 131 | + "devServerTarget": "cli-hello-world-ivy:serve:ci" |
154 | 132 | }, |
155 | 133 | "ci-production": { |
156 | | - "devServerTarget": "cli-hello-world:serve:ci-production" |
| 134 | + "devServerTarget": "cli-hello-world-ivy:serve:ci-production" |
157 | 135 | } |
158 | 136 | } |
159 | 137 | }, |
160 | 138 | "lint": { |
161 | 139 | "builder": "@angular-devkit/build-angular:tslint", |
162 | 140 | "options": { |
163 | | - "tsConfig": [ |
164 | | - "e2e/tsconfig.e2e.json" |
165 | | - ], |
| 141 | + "tsConfig": "e2e/tsconfig.e2e.json", |
166 | 142 | "exclude": [ |
167 | 143 | "**/node_modules/**" |
168 | 144 | ] |
|
171 | 147 | } |
172 | 148 | } |
173 | 149 | }, |
174 | | - "schematics": { |
175 | | - "@schematics/angular:component": { |
176 | | - "prefix": "app", |
177 | | - "styleext": "css" |
178 | | - }, |
179 | | - "@schematics/angular:directive": { |
180 | | - "prefix": "app" |
181 | | - } |
182 | | - } |
| 150 | + "defaultProject": "cli-hello-world-ivy" |
183 | 151 | } |
0 commit comments