Fix e2e tests
[oweals/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       "root": "",
8       "sourceRoot": "src",
9       "projectType": "application",
10       "architect": {
11         "build": {
12           "builder": "@angular-devkit/build-angular:browser",
13           "options": {
14             "deployUrl": "client/",
15             "outputPath": "dist",
16             "index": "src/index.html",
17             "main": "src/main.ts",
18             "tsConfig": "tsconfig.app.json",
19             "polyfills": "src/polyfills.ts",
20             "stylePreprocessorOptions": {
21               "includePaths": [
22                 "src/sass/include"
23               ]
24             },
25             "assets": [
26               "src/assets/images",
27               "src/manifest.webmanifest"
28             ],
29             "styles": [
30               "src/sass/application.scss"
31             ],
32             "scripts": []
33           },
34           "configurations": {
35             "production": {
36               "optimization": true,
37               "outputHashing": "all",
38               "sourceMap": false,
39               "extractCss": true,
40               "namedChunks": false,
41               "aot": true,
42               "extractLicenses": true,
43               "vendorChunk": false,
44               "buildOptimizer": true,
45               "serviceWorker": true,
46               "ngswConfigPath": "src/ngsw-config.json",
47               "budgets": [
48                 {
49                   "type": "initial",
50                   "maximumWarning": "2mb",
51                   "maximumError": "5mb"
52                 },
53                 {
54                   "type": "anyComponentStyle",
55                   "maximumWarning": "6kb",
56                   "maximumError": "10kb"
57                 }
58               ],
59               "fileReplacements": [
60                 {
61                   "replace": "src/environments/environment.ts",
62                   "with": "src/environments/environment.prod.ts"
63                 }
64               ]
65             },
66             "hmr": {
67               "fileReplacements": [
68                 {
69                   "replace": "src/environments/environment.ts",
70                   "with": "src/environments/environment.hmr.ts"
71                 }
72               ]
73             },
74             "e2e": {
75               "fileReplacements": [
76                 {
77                   "replace": "src/environments/environment.ts",
78                   "with": "src/environments/environment.e2e.ts"
79                 }
80               ]
81             }
82           }
83         },
84         "serve": {
85           "builder": "@angular-devkit/build-angular:dev-server",
86           "options": {
87             "baseHref": "/",
88             "deployUrl": "client/",
89             "browserTarget": "PeerTube:build",
90             "proxyConfig": "proxy.config.json"
91           },
92           "configurations": {
93             "production": {
94               "browserTarget": "PeerTube:build:production"
95             },
96             "hmr": {
97               "browserTarget": "PeerTube:build:hmr"
98             },
99             "e2e": {
100               "browserTarget": "PeerTube:build:e2e",
101               "proxyConfig": "e2e/proxy.config.json"
102             }
103           }
104         },
105         "extract-i18n": {
106           "builder": "@angular-devkit/build-angular:extract-i18n",
107           "options": {
108             "browserTarget": "PeerTube:build"
109           }
110         },
111         "test": {
112           "builder": "@angular-devkit/build-angular:karma",
113           "options": {
114             "main": "src/test.ts",
115             "karmaConfig": "./karma.conf.js",
116             "polyfills": "src/polyfills.ts",
117             "tsConfig": "src/tsconfig.spec.json",
118             "scripts": [],
119             "styles": [
120               "src/sass/application.scss"
121             ],
122             "assets": [
123               "src/assets/images",
124               "src/manifest.webmanifest"
125             ]
126           }
127         },
128         "lint": {
129           "builder": "@angular-devkit/build-angular:tslint",
130           "options": {
131             "tsConfig": [
132               "tsconfig.app.json"
133             ],
134             "exclude": [
135               "**/node_modules/**"
136             ]
137           }
138         }
139       }
140     },
141     "PeerTube-e2e": {
142       "root": "e2e/",
143       "sourceRoot": "",
144       "projectType": "application",
145       "architect": {
146         "e2e": {
147           "builder": "@angular-devkit/build-angular:protractor",
148           "options": {
149             "protractorConfig": "e2e/protractor.conf.js",
150             "devServerTarget": "PeerTube:serve:e2e"
151           },
152           "configurations": {
153             "local": {
154               "protractorConfig": "e2e/local-protractor.conf.js"
155             }
156           }
157         },
158         "lint": {
159           "builder": "@angular-devkit/build-angular:tslint",
160           "options": {
161             "tsConfig": [
162               "e2e/tsconfig.e2e.json"
163             ],
164             "exclude": [
165               "**/node_modules/**"
166             ]
167           }
168         }
169       }
170     }
171   },
172   "defaultProject": "PeerTube",
173   "schematics": {
174     "@schematics/angular:component": {
175       "prefix": "app",
176       "styleext": "scss"
177     },
178     "@schematics/angular:directive": {
179       "prefix": "app"
180     }
181   }
182 }