]>
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": { | |
7 | "root": "", | |
8 | "sourceRoot": "src", | |
9 | "projectType": "application", | |
10 | "architect": { | |
11 | "build": { | |
12 | "builder": "@angular-devkit/build-angular:browser", | |
13 | "options": { | |
17c49e60 | 14 | "deployUrl": "client/", |
54c3a22f C |
15 | "outputPath": "dist", |
16 | "index": "src/index.html", | |
17 | "main": "src/main.ts", | |
16b55259 | 18 | "tsConfig": "tsconfig.app.json", |
54c3a22f C |
19 | "polyfills": "src/polyfills.ts", |
20 | "stylePreprocessorOptions": { | |
21 | "includePaths": [ | |
22 | "src/sass/include" | |
23 | ] | |
24 | }, | |
25 | "assets": [ | |
26 | "src/assets/images", | |
fcc7c060 | 27 | "src/manifest.webmanifest" |
54c3a22f C |
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, | |
a700f183 C |
45 | "serviceWorker": true, |
46 | "ngswConfigPath": "src/ngsw-config.json", | |
970ceac0 C |
47 | "budgets": [ |
48 | { | |
49 | "type": "initial", | |
970ceac0 C |
50 | "maximumWarning": "2mb", |
51 | "maximumError": "5mb" | |
970ceac0 C |
52 | }, |
53 | { | |
54 | "type": "anyComponentStyle", | |
55 | "maximumWarning": "6kb", | |
56 | "maximumError": "10kb" | |
57 | } | |
58 | ], | |
54c3a22f C |
59 | "fileReplacements": [ |
60 | { | |
61 | "replace": "src/environments/environment.ts", | |
62 | "with": "src/environments/environment.prod.ts" | |
63 | } | |
64 | ] | |
74af5a83 C |
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 | ] | |
54c3a22f C |
81 | } |
82 | } | |
83 | }, | |
84 | "serve": { | |
85 | "builder": "@angular-devkit/build-angular:dev-server", | |
86 | "options": { | |
41b15c89 C |
87 | "baseHref": "/", |
88 | "deployUrl": "client/", | |
446d9f8c C |
89 | "browserTarget": "PeerTube:build", |
90 | "proxyConfig": "proxy.config.json" | |
54c3a22f C |
91 | }, |
92 | "configurations": { | |
93 | "production": { | |
94 | "browserTarget": "PeerTube:build:production" | |
74af5a83 C |
95 | }, |
96 | "hmr": { | |
97 | "browserTarget": "PeerTube:build:hmr" | |
98 | }, | |
99 | "e2e": { | |
446d9f8c C |
100 | "browserTarget": "PeerTube:build:e2e", |
101 | "proxyConfig": "e2e/proxy.config.json" | |
54c3a22f C |
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", | |
fcc7c060 | 124 | "src/manifest.webmanifest" |
54c3a22f C |
125 | ] |
126 | } | |
127 | }, | |
128 | "lint": { | |
129 | "builder": "@angular-devkit/build-angular:tslint", | |
130 | "options": { | |
131 | "tsConfig": [ | |
16b55259 | 132 | "tsconfig.app.json" |
54c3a22f C |
133 | ], |
134 | "exclude": [ | |
135 | "**/node_modules/**" | |
136 | ] | |
137 | } | |
138 | } | |
139 | } | |
140 | }, | |
141 | "PeerTube-e2e": { | |
74af5a83 | 142 | "root": "e2e/", |
54c3a22f C |
143 | "sourceRoot": "", |
144 | "projectType": "application", | |
145 | "architect": { | |
146 | "e2e": { | |
147 | "builder": "@angular-devkit/build-angular:protractor", | |
148 | "options": { | |
74af5a83 C |
149 | "protractorConfig": "e2e/protractor.conf.js", |
150 | "devServerTarget": "PeerTube:serve:e2e" | |
9e3e2481 RK |
151 | }, |
152 | "configurations": { | |
153 | "local": { | |
154 | "protractorConfig": "e2e/local-protractor.conf.js" | |
155 | } | |
54c3a22f C |
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 | } | |
17c49e60 | 182 | } |