60abb899c881b0feebf61120db1ade6f1bcbdac7
[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                         }
81                     }
82                 },
83                 "serve": {
84                     "builder": "@angular-devkit/build-angular:dev-server",
85                     "options": {
86                         "browserTarget": "osm:build"
87                     },
88                     "configurations": {
89                         "production": {
90                             "browserTarget": "osm:build:production"
91                         }
92                     }
93                 },
94                 "extract-i18n": {
95                     "builder": "@angular-devkit/build-angular:extract-i18n",
96                     "options": {
97                         "browserTarget": "osm:build"
98                     }
99                 },
100                 "test": {
101                     "builder": "@angular-devkit/build-angular:karma",
102                     "options": {
103                         "main": "src/test.ts",
104                         "polyfills": "src/polyfills.ts",
105                         "tsConfig": "src/tsconfig.spec.json",
106                         "karmaConfig": "src/karma.conf.js",
107                         "styles": [
108                             "src/styles.css",
109                             "node_modules/ol/ol.css"
110                         ],
111                         "scripts": [],
112                         "assets": [
113                             "src/favicon.ico",
114                             "src/assets"
115                         ]
116                     }
117                 },
118                 "e2e": {
119                     "builder": "@cypress/schematic:cypress",
120                     "options": {
121                         "devServerTarget": "osm:serve",
122                         "watch": true,
123                         "headless": false,
124                         "configFile": "e2e//cypress.config.js"
125                     },
126                     "configurations": {
127                         "production": {
128                             "devServerTarget": "osm:serve:production"
129                         }
130                     }
131                 },
132                 "lint": {
133                     "builder": "@angular-eslint/builder:lint",
134                     "options": {
135                         "lintFilePatterns": [
136                             "src/**/*.ts",
137                             "src/**/*.html"
138                         ]
139                     }
140                 }
141             }
142         },
143         "osm-e2e": {
144             "root": "e2e/",
145             "projectType": "application",
146             "prefix": "",
147             "architect": {
148                 "e2e": {
149                     "builder": "@cypress/schematic:cypress",
150                     "options": {
151                         "devServerTarget": "osm-e2e:serve",
152                         "watch": true,
153                         "headless": false,
154                         "configFile": "e2e//cypress.config.js"
155                     },
156                     "configurations": {
157                         "production": {
158                             "devServerTarget": "osm-e2e:serve:production"
159                         }
160                     }
161                 }
162             }
163         }
164     },
165     "cli": {
166         "schematicCollections": [
167             "@angular-eslint/schematics"
168         ]
169     }
170 }