|
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | 6 | "app": { |
| 7 | + "projectType": "application", |
7 | 8 | "root": "", |
8 | 9 | "sourceRoot": "src", |
9 | | - "projectType": "application", |
10 | 10 | "prefix": "app", |
11 | | - "schematics": {}, |
12 | 11 | "architect": { |
13 | 12 | "build": { |
14 | 13 | "builder": "@angular-devkit/build-angular:browser", |
15 | 14 | "options": { |
16 | 15 | "outputPath": "dist", |
17 | 16 | "index": "src/index.html", |
18 | 17 | "main": "src/main.ts", |
19 | | - "polyfills": "src/polyfills.ts", |
20 | | - "tsConfig": "src/tsconfig.app.json", |
21 | | - "assets": ["src/favicon.ico", "src/assets"], |
| 18 | + "polyfills": [ |
| 19 | + "src/polyfills.ts" |
| 20 | + ], |
| 21 | + "tsConfig": "tsconfig.app.json", |
| 22 | + "assets": [ |
| 23 | + { |
| 24 | + "glob": "**/*", |
| 25 | + "input": "src/assets", |
| 26 | + "output": "assets" |
| 27 | + } |
| 28 | + ], |
22 | 29 | "styles": ["src/styles.css", "src/global.css", "src/theme/variables.css"], |
23 | 30 | "scripts": [] |
24 | 31 | }, |
25 | 32 | "configurations": { |
26 | 33 | "production": { |
27 | | - "fileReplacements": [ |
28 | | - { |
29 | | - "replace": "src/environments/environment.ts", |
30 | | - "with": "src/environments/environment.prod.ts" |
31 | | - } |
32 | | - ], |
33 | | - "optimization": true, |
34 | | - "outputHashing": "all", |
35 | | - "sourceMap": false, |
36 | | - "extractCss": true, |
37 | | - "namedChunks": false, |
38 | | - "aot": true, |
39 | | - "extractLicenses": true, |
40 | | - "vendorChunk": false, |
41 | | - "buildOptimizer": true, |
42 | 34 | "budgets": [ |
43 | 35 | { |
44 | 36 | "type": "initial", |
45 | 37 | "maximumWarning": "2mb", |
46 | 38 | "maximumError": "5mb" |
| 39 | + }, |
| 40 | + { |
| 41 | + "type": "anyComponentStyle", |
| 42 | + "maximumWarning": "2kb", |
| 43 | + "maximumError": "4kb" |
47 | 44 | } |
48 | | - ] |
| 45 | + ], |
| 46 | + "fileReplacements": [ |
| 47 | + { |
| 48 | + "replace": "src/environments/environment.ts", |
| 49 | + "with": "src/environments/environment.prod.ts" |
| 50 | + } |
| 51 | + ], |
| 52 | + "outputHashing": "all" |
| 53 | + }, |
| 54 | + "development": { |
| 55 | + "optimization": false, |
| 56 | + "extractLicenses": false, |
| 57 | + "sourceMap": true, |
| 58 | + "namedChunks": true |
| 59 | + }, |
| 60 | + "ci": { |
| 61 | + "progress": false |
49 | 62 | } |
50 | | - } |
| 63 | + }, |
| 64 | + "defaultConfiguration": "production" |
51 | 65 | }, |
52 | 66 | "serve": { |
53 | 67 | "builder": "@angular-devkit/build-angular:dev-server", |
|
57 | 71 | "configurations": { |
58 | 72 | "production": { |
59 | 73 | "browserTarget": "app:build:production" |
| 74 | + }, |
| 75 | + "development": { |
| 76 | + "browserTarget": "app:build:development" |
| 77 | + }, |
| 78 | + "ci": { |
| 79 | + "progress": false |
60 | 80 | } |
61 | | - } |
| 81 | + }, |
| 82 | + "defaultConfiguration": "development" |
62 | 83 | }, |
63 | 84 | "extract-i18n": { |
64 | 85 | "builder": "@angular-devkit/build-angular:extract-i18n", |
|
73 | 94 | "polyfills": "src/polyfills.ts", |
74 | 95 | "tsConfig": "src/tsconfig.spec.json", |
75 | 96 | "karmaConfig": "src/karma.conf.js", |
76 | | - "styles": ["src/styles.css"], |
77 | | - "scripts": [], |
78 | | - "assets": ["src/favicon.ico", "src/assets"] |
79 | | - } |
80 | | - }, |
81 | | - "lint": { |
82 | | - "builder": "@angular-devkit/build-angular:tslint", |
83 | | - "options": { |
84 | | - "tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"], |
85 | | - "exclude": ["**/node_modules/**"] |
86 | | - } |
87 | | - } |
88 | | - } |
89 | | - }, |
90 | | - "app-e2e": { |
91 | | - "root": "e2e/", |
92 | | - "projectType": "application", |
93 | | - "prefix": "", |
94 | | - "architect": { |
95 | | - "e2e": { |
96 | | - "builder": "@angular-devkit/build-angular:protractor", |
97 | | - "options": { |
98 | | - "protractorConfig": "e2e/protractor.conf.js", |
99 | | - "devServerTarget": "app:serve" |
| 97 | + "assets": [ |
| 98 | + { |
| 99 | + "glob": "**/*", |
| 100 | + "input": "src/assets", |
| 101 | + "output": "assets" |
| 102 | + } |
| 103 | + ], |
| 104 | + "styles": ["src/styles.css", "src/global.css", "src/theme/variables.css"], |
| 105 | + "scripts": [] |
100 | 106 | }, |
101 | 107 | "configurations": { |
102 | | - "production": { |
103 | | - "devServerTarget": "app:serve:production" |
| 108 | + "ci": { |
| 109 | + "progress": false, |
| 110 | + "watch": false |
104 | 111 | } |
105 | 112 | } |
106 | 113 | }, |
107 | 114 | "lint": { |
108 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 115 | + "builder": "@angular-eslint/builder:lint", |
109 | 116 | "options": { |
110 | | - "tsConfig": "e2e/tsconfig.e2e.json", |
111 | | - "exclude": ["**/node_modules/**"] |
| 117 | + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] |
112 | 118 | } |
113 | 119 | } |
114 | 120 | } |
115 | 121 | } |
116 | 122 | }, |
117 | | - "defaultProject": "app" |
| 123 | + "cli": { |
| 124 | + "schematicCollections": ["@ionic/angular-toolkit"] |
| 125 | + }, |
| 126 | + "schematics": { |
| 127 | + "@angular-eslint/schematics:application": { |
| 128 | + "setParserOptionsProject": true |
| 129 | + }, |
| 130 | + "@angular-eslint/schematics:library": { |
| 131 | + "setParserOptionsProject": true |
| 132 | + } |
| 133 | + } |
118 | 134 | } |
0 commit comments