]>
Commit | Line | Data |
---|---|---|
54c3a22f C |
1 | { |
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
3 | "version": 1, | |
4 | "newProjectRoot": "projects", | |
5 | "projects": { | |
6 | "PeerTube": { | |
2f5d2ec5 C |
7 | "i18n": { |
8 | "locales": { | |
9 | "fr_FR": { | |
10 | "translation": "src/i18n/messages.fr_FR.xlf", | |
11 | "baseHref": "" | |
12 | } | |
13 | } | |
14 | }, | |
54c3a22f C |
15 | "root": "", |
16 | "sourceRoot": "src", | |
17 | "projectType": "application", | |
18 | "architect": { | |
19 | "build": { | |
20 | "builder": "@angular-devkit/build-angular:browser", | |
21 | "options": { | |
2f5d2ec5 | 22 | "aot": true, |
17c49e60 | 23 | "deployUrl": "client/", |
54c3a22f C |
24 | "outputPath": "dist", |
25 | "index": "src/index.html", | |
26 | "main": "src/main.ts", | |
16b55259 | 27 | "tsConfig": "tsconfig.app.json", |
54c3a22f C |
28 | "polyfills": "src/polyfills.ts", |
29 | "stylePreprocessorOptions": { | |
30 | "includePaths": [ | |
31 | "src/sass/include" | |
32 | ] | |
33 | }, | |
34 | "assets": [ | |
35 | "src/assets/images", | |
fcc7c060 | 36 | "src/manifest.webmanifest" |
54c3a22f C |
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, | |
a700f183 C |
54 | "serviceWorker": true, |
55 | "ngswConfigPath": "src/ngsw-config.json", | |
970ceac0 C |
56 | "budgets": [ |
57 | { | |
58 | "type": "initial", | |
970ceac0 C |
59 | "maximumWarning": "2mb", |
60 | "maximumError": "5mb" | |
970ceac0 C |
61 | }, |
62 | { | |
63 | "type": "anyComponentStyle", | |
64 | "maximumWarning": "6kb", | |
65 | "maximumError": "10kb" | |
66 | } | |
67 | ], | |
54c3a22f C |
68 | "fileReplacements": [ |
69 | { | |
70 | "replace": "src/environments/environment.ts", | |
71 | "with": "src/environments/environment.prod.ts" | |
72 | } | |
73 | ] | |
74af5a83 C |
74 | }, |
75 | "hmr": { | |
2f5d2ec5 C |
76 | "budgets": [ |
77 | { | |
78 | "type": "anyComponentStyle", | |
79 | "maximumWarning": "6kb" | |
80 | } | |
81 | ], | |
74af5a83 C |
82 | "fileReplacements": [ |
83 | { | |
84 | "replace": "src/environments/environment.ts", | |
85 | "with": "src/environments/environment.hmr.ts" | |
86 | } | |
87 | ] | |
88 | }, | |
89 | "e2e": { | |
2f5d2ec5 C |
90 | "budgets": [ |
91 | { | |
92 | "type": "anyComponentStyle", | |
93 | "maximumWarning": "6kb" | |
94 | } | |
95 | ], | |
74af5a83 C |
96 | "fileReplacements": [ |
97 | { | |
98 | "replace": "src/environments/environment.ts", | |
99 | "with": "src/environments/environment.e2e.ts" | |
100 | } | |
101 | ] | |
3aea8eb2 C |
102 | }, |
103 | "fr_FR": { | |
104 | "aot": true, | |
2f5d2ec5 C |
105 | "budgets": [ |
106 | { | |
107 | "type": "anyComponentStyle", | |
108 | "maximumWarning": "6kb" | |
109 | } | |
110 | ], | |
3aea8eb2 C |
111 | "outputPath": "dist/PeerTube-fr_FR", |
112 | "i18nFile": "src/i18n/messages.fr_FR.xlf", | |
3aea8eb2 | 113 | "i18nLocale": "fr_FR" |
54c3a22f C |
114 | } |
115 | } | |
116 | }, | |
117 | "serve": { | |
118 | "builder": "@angular-devkit/build-angular:dev-server", | |
119 | "options": { | |
41b15c89 C |
120 | "baseHref": "/", |
121 | "deployUrl": "client/", | |
446d9f8c C |
122 | "browserTarget": "PeerTube:build", |
123 | "proxyConfig": "proxy.config.json" | |
54c3a22f C |
124 | }, |
125 | "configurations": { | |
126 | "production": { | |
127 | "browserTarget": "PeerTube:build:production" | |
74af5a83 C |
128 | }, |
129 | "hmr": { | |
130 | "browserTarget": "PeerTube:build:hmr" | |
131 | }, | |
132 | "e2e": { | |
446d9f8c C |
133 | "browserTarget": "PeerTube:build:e2e", |
134 | "proxyConfig": "e2e/proxy.config.json" | |
3aea8eb2 C |
135 | }, |
136 | "fr_FR": { | |
137 | "browserTarget": "PeerTube:build:fr_FR" | |
54c3a22f C |
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", | |
fcc7c060 | 160 | "src/manifest.webmanifest" |
54c3a22f C |
161 | ] |
162 | } | |
163 | }, | |
164 | "lint": { | |
165 | "builder": "@angular-devkit/build-angular:tslint", | |
166 | "options": { | |
167 | "tsConfig": [ | |
16b55259 | 168 | "tsconfig.app.json" |
54c3a22f C |
169 | ], |
170 | "exclude": [ | |
171 | "**/node_modules/**" | |
172 | ] | |
173 | } | |
3aea8eb2 C |
174 | }, |
175 | "xliffmerge": { | |
176 | "builder": "@ngx-i18nsupport/tooling:xliffmerge", | |
177 | "options": { | |
178 | "xliffmergeOptions": { | |
179 | "i18nFormat": "xlf", | |
180 | "srcDir": "src/locale", | |
181 | "genDir": "src/locale", | |
3aea8eb2 C |
182 | "i18nBaseFile": "angular", |
183 | "defaultLanguage": "en-US", | |
184 | "languages": [ | |
fbe77135 C |
185 | "ar-001", |
186 | "ca-ES", | |
187 | "cs-CZ", | |
188 | "da-DK", | |
189 | "de-DE", | |
190 | "el-GR", | |
191 | "en-GB", | |
3aea8eb2 | 192 | "en-US", |
fbe77135 C |
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" | |
3aea8eb2 C |
224 | ] |
225 | } | |
226 | } | |
54c3a22f C |
227 | } |
228 | } | |
229 | }, | |
230 | "PeerTube-e2e": { | |
74af5a83 | 231 | "root": "e2e/", |
54c3a22f C |
232 | "sourceRoot": "", |
233 | "projectType": "application", | |
234 | "architect": { | |
235 | "e2e": { | |
236 | "builder": "@angular-devkit/build-angular:protractor", | |
237 | "options": { | |
74af5a83 C |
238 | "protractorConfig": "e2e/protractor.conf.js", |
239 | "devServerTarget": "PeerTube:serve:e2e" | |
9e3e2481 RK |
240 | }, |
241 | "configurations": { | |
242 | "local": { | |
243 | "protractorConfig": "e2e/local-protractor.conf.js" | |
244 | } | |
54c3a22f C |
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 | } | |
17c49e60 | 271 | } |