]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/angular.json
Update to angular 9
[github/Chocobozzz/PeerTube.git] / client / angular.json
1 {
2 "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 "version": 1,
4 "newProjectRoot": "projects",
5 "projects": {
6 "PeerTube": {
7 "i18n": {
8 "locales": {
9 "fr_FR": {
10 "translation": "src/i18n/messages.fr_FR.xlf",
11 "baseHref": ""
12 }
13 }
14 },
15 "root": "",
16 "sourceRoot": "src",
17 "projectType": "application",
18 "architect": {
19 "build": {
20 "builder": "@angular-devkit/build-angular:browser",
21 "options": {
22 "aot": true,
23 "deployUrl": "client/",
24 "outputPath": "dist",
25 "index": "src/index.html",
26 "main": "src/main.ts",
27 "tsConfig": "tsconfig.app.json",
28 "polyfills": "src/polyfills.ts",
29 "stylePreprocessorOptions": {
30 "includePaths": [
31 "src/sass/include"
32 ]
33 },
34 "assets": [
35 "src/assets/images",
36 "src/manifest.webmanifest"
37 ],
38 "styles": [
39 "src/sass/application.scss"
40 ],
41 "scripts": []
42 },
43 "configurations": {
44 "production": {
45 "optimization": true,
46 "outputHashing": "all",
47 "sourceMap": false,
48 "extractCss": true,
49 "namedChunks": false,
50 "aot": true,
51 "extractLicenses": true,
52 "vendorChunk": false,
53 "buildOptimizer": true,
54 "serviceWorker": true,
55 "ngswConfigPath": "src/ngsw-config.json",
56 "budgets": [
57 {
58 "type": "initial",
59 "maximumWarning": "2mb",
60 "maximumError": "5mb"
61 },
62 {
63 "type": "anyComponentStyle",
64 "maximumWarning": "6kb",
65 "maximumError": "10kb"
66 }
67 ],
68 "fileReplacements": [
69 {
70 "replace": "src/environments/environment.ts",
71 "with": "src/environments/environment.prod.ts"
72 }
73 ]
74 },
75 "hmr": {
76 "budgets": [
77 {
78 "type": "anyComponentStyle",
79 "maximumWarning": "6kb"
80 }
81 ],
82 "fileReplacements": [
83 {
84 "replace": "src/environments/environment.ts",
85 "with": "src/environments/environment.hmr.ts"
86 }
87 ]
88 },
89 "e2e": {
90 "budgets": [
91 {
92 "type": "anyComponentStyle",
93 "maximumWarning": "6kb"
94 }
95 ],
96 "fileReplacements": [
97 {
98 "replace": "src/environments/environment.ts",
99 "with": "src/environments/environment.e2e.ts"
100 }
101 ]
102 },
103 "fr_FR": {
104 "aot": true,
105 "budgets": [
106 {
107 "type": "anyComponentStyle",
108 "maximumWarning": "6kb"
109 }
110 ],
111 "outputPath": "dist/PeerTube-fr_FR",
112 "i18nFile": "src/i18n/messages.fr_FR.xlf",
113 "i18nLocale": "fr_FR"
114 }
115 }
116 },
117 "serve": {
118 "builder": "@angular-devkit/build-angular:dev-server",
119 "options": {
120 "baseHref": "/",
121 "deployUrl": "client/",
122 "browserTarget": "PeerTube:build",
123 "proxyConfig": "proxy.config.json"
124 },
125 "configurations": {
126 "production": {
127 "browserTarget": "PeerTube:build:production"
128 },
129 "hmr": {
130 "browserTarget": "PeerTube:build:hmr"
131 },
132 "e2e": {
133 "browserTarget": "PeerTube:build:e2e",
134 "proxyConfig": "e2e/proxy.config.json"
135 },
136 "fr_FR": {
137 "browserTarget": "PeerTube:build:fr_FR"
138 }
139 }
140 },
141 "extract-i18n": {
142 "builder": "@angular-devkit/build-angular:extract-i18n",
143 "options": {
144 "browserTarget": "PeerTube:build"
145 }
146 },
147 "test": {
148 "builder": "@angular-devkit/build-angular:karma",
149 "options": {
150 "main": "src/test.ts",
151 "karmaConfig": "./karma.conf.js",
152 "polyfills": "src/polyfills.ts",
153 "tsConfig": "src/tsconfig.spec.json",
154 "scripts": [],
155 "styles": [
156 "src/sass/application.scss"
157 ],
158 "assets": [
159 "src/assets/images",
160 "src/manifest.webmanifest"
161 ]
162 }
163 },
164 "lint": {
165 "builder": "@angular-devkit/build-angular:tslint",
166 "options": {
167 "tsConfig": [
168 "tsconfig.app.json"
169 ],
170 "exclude": [
171 "**/node_modules/**"
172 ]
173 }
174 },
175 "xliffmerge": {
176 "builder": "@ngx-i18nsupport/tooling:xliffmerge",
177 "options": {
178 "xliffmergeOptions": {
179 "i18nFormat": "xlf",
180 "srcDir": "src/locale",
181 "genDir": "src/locale",
182 "i18nBaseFile": "angular",
183 "defaultLanguage": "en-US",
184 "languages": [
185 "ar-001",
186 "ca-ES",
187 "cs-CZ",
188 "da-DK",
189 "de-DE",
190 "el-GR",
191 "en-GB",
192 "en-US",
193 "eo",
194 "es-ES",
195 "eu-ES",
196 "fa-IR",
197 "fi-FI",
198 "fr-FR",
199 "gd",
200 "gl-ES",
201 "hu-HU",
202 "it-IT",
203 "ja-JP",
204 "jbo",
205 "ko-KR",
206 "lt-LT",
207 "nb-NO",
208 "nl-NL",
209 "oc",
210 "pl-PL",
211 "pt-BR",
212 "pt-PT",
213 "ru-RU",
214 "sk-SK",
215 "sl-SI",
216 "sv-SE",
217 "ta",
218 "th-TH",
219 "tr-TR",
220 "uk-UA",
221 "vi-VN",
222 "zh-Hans-CN",
223 "zh-Hant-TW"
224 ]
225 }
226 }
227 }
228 }
229 },
230 "PeerTube-e2e": {
231 "root": "e2e/",
232 "sourceRoot": "",
233 "projectType": "application",
234 "architect": {
235 "e2e": {
236 "builder": "@angular-devkit/build-angular:protractor",
237 "options": {
238 "protractorConfig": "e2e/protractor.conf.js",
239 "devServerTarget": "PeerTube:serve:e2e"
240 },
241 "configurations": {
242 "local": {
243 "protractorConfig": "e2e/local-protractor.conf.js"
244 }
245 }
246 },
247 "lint": {
248 "builder": "@angular-devkit/build-angular:tslint",
249 "options": {
250 "tsConfig": [
251 "e2e/tsconfig.e2e.json"
252 ],
253 "exclude": [
254 "**/node_modules/**"
255 ]
256 }
257 }
258 }
259 }
260 },
261 "defaultProject": "PeerTube",
262 "schematics": {
263 "@schematics/angular:component": {
264 "prefix": "app",
265 "styleext": "scss"
266 },
267 "@schematics/angular:directive": {
268 "prefix": "app"
269 }
270 }
271 }