Angular upgrade
[osm/NG-UI.git] / angular.json
1 {
2     "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3     "version": 1,
4     "newProjectRoot": "projects",
5     "projects": {
6         "osm": {
7             "root": "",
8             "sourceRoot": "src",
9             "projectType": "application",
10             "prefix": "app",
11             "schematics": {
12                 "@schematics/angular:component": {
13                     "style": "scss"
14                 }
15             },
16             "architect": {
17                 "build": {
18                     "builder": "@angular-devkit/build-angular:browser",
19                     "options": {
20                         "outputPath": "dist/osm",
21                         "index": "src/index.html",
22                         "main": "src/main.ts",
23                         "polyfills": "src/polyfills.ts",
24                         "tsConfig": "src/tsconfig.app.json",
25                         "allowedCommonJsDependencies": [
26                             "chart.js",
27                             "ng-sidebar",
28                             "@ctrl/ngx-codemirror",
29                             "rbush",
30                             "lodash",
31                             "jsonpath",
32                             "codemirror",
33                             "pako",
34                             "js-untar",
35                             "util",
36                             "http-status-codes",
37                             "js-yaml"
38                         ],
39                         "assets": [
40                             "src/favicon.ico",
41                             "src/assets"
42                         ],
43                         "styles": [
44                             "src/assets/scss/style.scss",
45                             "node_modules/ol/ol.css",
46                             "node_modules/@fortawesome/fontawesome-free/css/all.min.css"
47                         ],
48                         "scripts": [
49                             "src/assets/js/tar.js"
50                         ],
51                         "stylePreprocessorOptions": {
52                             "includePaths": [
53                                 "node_modules/"
54                             ]
55                         }
56                     },
57                     "configurations": {
58                         "production": {
59                             "fileReplacements": [
60                                 {
61                                     "replace": "src/environments/environment.ts",
62                                     "with": "src/environments/environment.prod.ts"
63                                 }
64                             ],
65                             "optimization": true,
66                             "outputHashing": "all",
67                             "sourceMap": false,
68                             "namedChunks": false,
69                             "aot": true,
70                             "extractLicenses": true,
71                             "vendorChunk": false,
72                             "buildOptimizer": true,
73                             "budgets": [
74                                 {
75                                     "type": "initial",
76                                     "maximumWarning": "2mb",
77                                     "maximumError": "5mb"
78                                 },
79                                 {
80                                     "type": "anyComponentStyle",
81                                     "maximumWarning": "6kb",
82                                     "maximumError": "10kb"
83                                 }
84                             ]
85                         },
86                         "development": {
87                             "buildOptimizer": false,
88                             "optimization": false,
89                             "vendorChunk": true,
90                             "extractLicenses": false,
91                             "sourceMap": true,
92                             "namedChunks": true
93                         }
94                     },
95                     "defaultConfiguration": "production"
96                 },
97                 "serve": {
98                     "builder": "@angular-devkit/build-angular:dev-server",
99                     "options": {
100                         "browserTarget": "osm:build"
101                     },
102                     "configurations": {
103                         "production": {
104                             "browserTarget": "osm:build:production"
105                         },
106                         "development": {
107                             "browserTarget": "osm:build:development"
108                         }
109                     },
110                     "defaultConfiguration": "development"
111                 },
112                 "extract-i18n": {
113                     "builder": "@angular-devkit/build-angular:extract-i18n",
114                     "options": {
115                         "browserTarget": "osm:build"
116                     }
117                 },
118                 "test": {
119                     "builder": "@angular-devkit/build-angular:karma",
120                     "options": {
121                         "main": "src/test.ts",
122                         "polyfills": "src/polyfills.ts",
123                         "tsConfig": "src/tsconfig.spec.json",
124                         "karmaConfig": "src/karma.conf.js",
125                         "styles": [
126                             "src/styles.css",
127                             "node_modules/ol/ol.css"
128                         ],
129                         "scripts": [],
130                         "assets": [
131                             "src/favicon.ico",
132                             "src/assets"
133                         ]
134                     }
135                 },
136                 "e2e": {
137                     "builder": "@cypress/schematic:cypress",
138                     "options": {
139                         "devServerTarget": "osm:serve",
140                         "watch": true,
141                         "headless": false,
142                         "configFile": "e2e//cypress.config.js"
143                     },
144                     "configurations": {
145                         "production": {
146                             "devServerTarget": "osm:serve:production"
147                         }
148                     }
149                 },
150                 "lint": {
151                     "builder": "@angular-eslint/builder:lint",
152                     "options": {
153                         "lintFilePatterns": [
154                             "src/**/*.ts",
155                             "src/**/*.html"
156                         ]
157                     }
158                 }
159             }
160         },
161         "osm-e2e": {
162             "root": "e2e/",
163             "projectType": "application",
164             "prefix": "",
165             "architect": {
166                 "e2e": {
167                     "builder": "@cypress/schematic:cypress",
168                     "options": {
169                         "devServerTarget": "osm-e2e:serve",
170                         "watch": true,
171                         "headless": false,
172                         "configFile": "e2e//cypress.config.js"
173                     },
174                     "configurations": {
175                         "production": {
176                             "devServerTarget": "osm-e2e:serve:production"
177                         }
178                     }
179                 }
180             }
181         }
182     },
183     "cli": {
184         "schematicCollections": [
185             "@angular-eslint/schematics"
186         ],
187         "analytics": "bc7a21d3-c008-4362-b213-866be7e71063"
188     }
189 }