|
8 | 8 | "schematics": { |
9 | 9 | "@schematics/angular:component": { |
10 | 10 | "style": "less" |
| 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, |
26 | | - "assets": ["src/assets"], |
| 28 | + "assets": [ |
| 29 | + "src/favicon.ico", |
| 30 | + "src/assets" |
| 31 | + ], |
| 32 | + "inlineStyleLanguage": "less", |
27 | 33 | "styles": [], |
28 | 34 | "scripts": [] |
29 | 35 | }, |
30 | 36 | "configurations": { |
31 | 37 | "production": { |
32 | | - "fileReplacements": [ |
33 | | - { |
34 | | - "replace": "src/environments/environment.ts", |
35 | | - "with": "src/environments/environment.prod.ts" |
36 | | - } |
37 | | - ], |
38 | | - "optimization": true, |
39 | | - "outputHashing": "all", |
40 | | - "sourceMap": false, |
41 | | - "namedChunks": false, |
42 | | - "extractLicenses": true, |
43 | | - "vendorChunk": false, |
44 | | - "buildOptimizer": true, |
45 | 38 | "budgets": [ |
46 | 39 | { |
47 | 40 | "type": "initial", |
48 | | - "maximumWarning": "2mb", |
49 | | - "maximumError": "5mb" |
| 41 | + "maximumWarning": "500kb", |
| 42 | + "maximumError": "1mb" |
50 | 43 | }, |
51 | 44 | { |
52 | 45 | "type": "anyComponentStyle", |
53 | | - "maximumWarning": "6kb", |
54 | | - "maximumError": "10kb" |
| 46 | + "maximumWarning": "2kb", |
| 47 | + "maximumError": "4kb" |
55 | 48 | } |
56 | | - ] |
| 49 | + ], |
| 50 | + "fileReplacements": [ |
| 51 | + { |
| 52 | + "replace": "src/environments/environment.ts", |
| 53 | + "with": "src/environments/environment.prod.ts" |
| 54 | + } |
| 55 | + ], |
| 56 | + "outputHashing": "all" |
| 57 | + }, |
| 58 | + "development": { |
| 59 | + "buildOptimizer": false, |
| 60 | + "optimization": false, |
| 61 | + "vendorChunk": true, |
| 62 | + "extractLicenses": false, |
| 63 | + "sourceMap": true, |
| 64 | + "namedChunks": true |
57 | 65 | } |
58 | | - } |
| 66 | + }, |
| 67 | + "defaultConfiguration": "production" |
59 | 68 | }, |
60 | 69 | "serve": { |
61 | 70 | "builder": "@angular-devkit/build-angular:dev-server", |
62 | | - "options": { |
63 | | - "browserTarget": "ng-github-button:build" |
64 | | - }, |
65 | 71 | "configurations": { |
66 | 72 | "production": { |
67 | 73 | "browserTarget": "ng-github-button:build:production" |
| 74 | + }, |
| 75 | + "development": { |
| 76 | + "browserTarget": "ng-github-button:build:development" |
68 | 77 | } |
69 | | - } |
| 78 | + }, |
| 79 | + "defaultConfiguration": "development" |
70 | 80 | }, |
71 | 81 | "test": { |
72 | 82 | "builder": "@angular-devkit/build-angular:karma", |
73 | 83 | "options": { |
74 | 84 | "main": "lib/test.ts", |
75 | 85 | "polyfills": "src/polyfills.ts", |
76 | 86 | "tsConfig": "tsconfig.spec.json", |
77 | | - "karmaConfig": "karma.conf.js", |
78 | | - "scripts": [], |
79 | | - "styles": [], |
80 | | - "assets": [] |
| 87 | + "karmaConfig": "karma.conf.js" |
81 | 88 | } |
82 | 89 | }, |
83 | 90 | "lint": { |
84 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 91 | + "builder": "@angular-eslint/builder:lint", |
85 | 92 | "options": { |
86 | | - "tsConfig": [ |
87 | | - "tsconfig.app.json", |
88 | | - "tsconfig.spec.json" |
89 | | - ], |
90 | | - "exclude": [ |
91 | | - "**/node_modules/**" |
| 93 | + "lintFilePatterns": [ |
| 94 | + "src/**/*.ts", |
| 95 | + "src/**/*.html", |
| 96 | + "lib/**/*.ts", |
| 97 | + "lib/**/*.html" |
92 | 98 | ] |
93 | 99 | } |
94 | 100 | } |
95 | 101 | } |
96 | 102 | } |
97 | 103 | }, |
98 | | - "defaultProject": "ng-github-button" |
| 104 | + "defaultProject": "ng-github-button", |
| 105 | + "cli": { |
| 106 | + "defaultCollection": "@angular-eslint/schematics" |
| 107 | + } |
99 | 108 | } |
0 commit comments