]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/angular.json
LP1948035 Angular 12 updates
[Evergreen.git] / Open-ILS / src / eg2 / angular.json
1 {
2   "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3   "version": 1,
4   "newProjectRoot": "projects",
5   "projects": {
6     "eg": {
7       "root": "",
8       "sourceRoot": "src",
9       "projectType": "application",
10       "architect": {
11         "build": {
12           "builder": "@angular-devkit/build-angular:browser",
13           "options": {
14             "baseHref": "/eg2/en-US",
15             "deployUrl": "/eg2/en-US/",
16             "outputPath": "../../web/eg2/en-US",
17             "index": "src/index.html",
18             "main": "src/main.ts",
19             "tsConfig": "src/tsconfig.app.json",
20             "polyfills": "src/polyfills.ts",
21             "assets": [
22               "src/assets",
23               "src/favicon.ico"
24             ],
25             "styles": [
26               "src/styles.css"
27             ],
28             "scripts": [
29               "src/assets/js/marcrecord.js"
30             ],
31             "allowedCommonJsDependencies": [
32               "file-saver",
33               "moment",
34               "moment-timezone"
35             ],
36             "aot": false,
37             "vendorChunk": true,
38             "extractLicenses": false,
39             "buildOptimizer": false,
40             "sourceMap": true,
41             "optimization": false,
42             "namedChunks": true
43           },
44           "configurations": {
45             "production": {
46               "optimization": true,
47               "outputHashing": "all",
48               "sourceMap": false,
49               "namedChunks": false,
50               "aot": true,
51               "extractLicenses": true,
52               "vendorChunk": false,
53               "buildOptimizer": true,
54               "fileReplacements": [
55                 {
56                   "replace": "src/environments/environment.ts",
57                   "with": "src/environments/environment.prod.ts"
58                 }
59               ]
60             },
61             "production-cs-CZ": {
62               "optimization": true,
63               "outputHashing": "all",
64               "sourceMap": false,
65               "namedChunks": false,
66               "aot": true,
67               "extractLicenses": true,
68               "vendorChunk": false,
69               "buildOptimizer": true,
70               "i18nMissingTranslation": "ignore",
71               "fileReplacements": [
72                 {
73                   "replace": "src/environments/environment.ts",
74                   "with": "src/environments/environment.prod.ts"
75                 }
76               ],
77               "localize": [
78                 "cs-CZ"
79               ]
80             }
81           },
82           "defaultConfiguration": ""
83         },
84         "serve": {
85           "builder": "@angular-devkit/build-angular:dev-server",
86           "options": {
87             "browserTarget": "eg:build"
88           },
89           "configurations": {
90             "production": {
91               "browserTarget": "eg:build:production"
92             }
93           }
94         },
95         "extract-i18n": {
96           "builder": "@angular-devkit/build-angular:extract-i18n",
97           "options": {
98             "browserTarget": "eg:build"
99           }
100         },
101         "test": {
102           "builder": "@angular-devkit/build-angular:karma",
103           "options": {
104             "main": "src/test.ts",
105             "karmaConfig": "./karma.conf.js",
106             "polyfills": "src/polyfills.ts",
107             "tsConfig": "src/tsconfig.spec.json",
108             "scripts": [],
109             "styles": [
110               "src/styles.css"
111             ],
112             "assets": [
113               "src/assets",
114               "src/favicon.ico"
115             ]
116           }
117         },
118         "lint": {
119           "builder": "@angular-devkit/build-angular:tslint",
120           "options": {
121             "tsConfig": [
122               "src/tsconfig.app.json",
123               "src/tsconfig.spec.json"
124             ],
125             "exclude": [
126               "**/node_modules/**"
127             ]
128           }
129         }
130       },
131       "i18n": {
132         "locales": {
133           "cs-CZ": {
134             "translation": "src/locale/messages.cs-CZ.xtb",
135             "baseHref": ""
136           }
137         }
138       }
139     },
140     "eg-e2e": {
141       "root": "",
142       "sourceRoot": "",
143       "projectType": "application",
144       "architect": {
145         "e2e": {
146           "builder": "@angular-devkit/build-angular:protractor",
147           "options": {
148             "protractorConfig": "./protractor.conf.js",
149             "devServerTarget": "eg:serve"
150           }
151         },
152         "lint": {
153           "builder": "@angular-devkit/build-angular:tslint",
154           "options": {
155             "tsConfig": [
156               "e2e/tsconfig.e2e.json"
157             ],
158             "exclude": [
159               "**/node_modules/**"
160             ]
161           }
162         }
163       }
164     }
165   },
166   "defaultProject": "eg",
167   "schematics": {
168     "@schematics/angular:component": {
169       "prefix": "eg",
170       "styleext": "css"
171     },
172     "@schematics/angular:directive": {
173       "prefix": "eg"
174     }
175   }
176 }