angular.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. "i18n": {
  11. "sourceLocale": {
  12. "code": "en",
  13. "baseHref": "/client/en-US/"
  14. },
  15. "locales": {
  16. "ar": {
  17. "translation": "src/locale/angular.ar.xlf",
  18. "baseHref": "/client/ar/"
  19. },
  20. "fa": {
  21. "translation": "src/locale/angular.fa-IR.xlf",
  22. "baseHref": "/client/fa-IR/"
  23. },
  24. "hu": {
  25. "translation": "src/locale/angular.hu-HU.xlf",
  26. "baseHref": "/client/hu-HU/"
  27. },
  28. "th": {
  29. "translation": "src/locale/angular.th-TH.xlf",
  30. "baseHref": "/client/th-TH/"
  31. },
  32. "fi": {
  33. "translation": "src/locale/angular.fi-FI.xlf",
  34. "baseHref": "/client/fi-FI/"
  35. },
  36. "nl": {
  37. "translation": "src/locale/angular.nl-NL.xlf",
  38. "baseHref": "/client/nl-NL/"
  39. },
  40. "gd": {
  41. "translation": "src/locale/angular.gd.xlf",
  42. "baseHref": "/client/gd/"
  43. },
  44. "el": {
  45. "translation": "src/locale/angular.el-GR.xlf",
  46. "baseHref": "/client/el-GR/"
  47. },
  48. "es": {
  49. "translation": "src/locale/angular.es-ES.xlf",
  50. "baseHref": "/client/es-ES/"
  51. },
  52. "oc": {
  53. "translation": "src/locale/angular.oc.xlf",
  54. "baseHref": "/client/oc/"
  55. },
  56. "pt": {
  57. "translation": "src/locale/angular.pt-BR.xlf",
  58. "baseHref": "/client/pt-BR/"
  59. },
  60. "pt-PT": {
  61. "translation": "src/locale/angular.pt-PT.xlf",
  62. "baseHref": "/client/pt-PT/"
  63. },
  64. "sv": {
  65. "translation": "src/locale/angular.sv-SE.xlf",
  66. "baseHref": "/client/sv-SE/"
  67. },
  68. "pl": {
  69. "translation": "src/locale/angular.pl-PL.xlf",
  70. "baseHref": "/client/pl-PL/"
  71. },
  72. "ru": {
  73. "translation": "src/locale/angular.ru-RU.xlf",
  74. "baseHref": "/client/ru-RU/"
  75. },
  76. "sq": {
  77. "translation": "src/locale/angular.sq.xlf",
  78. "baseHref": "/client/sq/"
  79. },
  80. "hr": {
  81. "translation": "src/locale/angular.hr.xlf",
  82. "baseHref": "/client/hr/"
  83. },
  84. "zh-Hans": {
  85. "translation": "src/locale/angular.zh-Hans-CN.xlf",
  86. "baseHref": "/client/zh-Hans-CN/"
  87. },
  88. "zh-Hant": {
  89. "translation": "src/locale/angular.zh-Hant-TW.xlf",
  90. "baseHref": "/client/zh-Hant-TW/"
  91. },
  92. "fr": {
  93. "translation": "src/locale/angular.fr-FR.xlf",
  94. "baseHref": "/client/fr-FR/"
  95. },
  96. "ja": {
  97. "translation": "src/locale/angular.ja-JP.xlf",
  98. "baseHref": "/client/ja-JP/"
  99. },
  100. "eu": {
  101. "translation": "src/locale/angular.eu-ES.xlf",
  102. "baseHref": "/client/eu-ES/"
  103. },
  104. "ca": {
  105. "translation": "src/locale/angular.ca-ES.xlf",
  106. "baseHref": "/client/ca-ES/"
  107. },
  108. "gl": {
  109. "translation": "src/locale/angular.gl-ES.xlf",
  110. "baseHref": "/client/gl-ES/"
  111. },
  112. "cs": {
  113. "translation": "src/locale/angular.cs-CZ.xlf",
  114. "baseHref": "/client/cs-CZ/"
  115. },
  116. "eo": {
  117. "translation": "src/locale/angular.eo.xlf",
  118. "baseHref": "/client/eo/"
  119. },
  120. "de": {
  121. "translation": "src/locale/angular.de-DE.xlf",
  122. "baseHref": "/client/de-DE/"
  123. },
  124. "it": {
  125. "translation": "src/locale/angular.it-IT.xlf",
  126. "baseHref": "/client/it-IT/"
  127. },
  128. "vi": {
  129. "translation": "src/locale/angular.vi-VN.xlf",
  130. "baseHref": "/client/vi-VN/"
  131. },
  132. "kab": {
  133. "translation": "src/locale/angular.kab.xlf",
  134. "baseHref": "/client/kab/"
  135. },
  136. "nb": {
  137. "translation": "src/locale/angular.nb-NO.xlf",
  138. "baseHref": "/client/nb-NO/"
  139. },
  140. "tok": {
  141. "translation": "src/locale/angular.tok.xlf",
  142. "baseHref": "/client/tok/"
  143. },
  144. "nn": {
  145. "translation": "src/locale/angular.nn.xlf",
  146. "baseHref": "/client/nn/"
  147. },
  148. "is": {
  149. "translation": "src/locale/angular.is.xlf",
  150. "baseHref": "/client/is/"
  151. },
  152. "uk": {
  153. "translation": "src/locale/angular.uk-UA.xlf",
  154. "baseHref": "/client/uk-UA/"
  155. }
  156. }
  157. },
  158. "architect": {
  159. "build": {
  160. "builder": "@angular-devkit/build-angular:browser",
  161. "options": {
  162. "localize": true,
  163. "outputPath": "dist",
  164. "index": "src/index.html",
  165. "main": "src/main.ts",
  166. "tsConfig": "tsconfig.json",
  167. "polyfills": "src/polyfills.ts",
  168. "baseHref": "/",
  169. "stylePreprocessorOptions": {
  170. "includePaths": [
  171. "src/sass/include"
  172. ]
  173. },
  174. "assets": [
  175. "src/assets/images",
  176. "src/manifest.webmanifest"
  177. ],
  178. "styles": [
  179. "src/sass/application.scss"
  180. ],
  181. "allowedCommonJsDependencies": [
  182. "qrcode",
  183. "chart.js",
  184. "htmlparser2",
  185. "markdown-it-emoji/light",
  186. "linkifyjs/lib/linkify-html",
  187. "linkifyjs/lib/plugins/mention",
  188. "sanitize-html",
  189. "debug",
  190. "@peertube/p2p-media-loader-hlsjs",
  191. "video.js",
  192. "sha.js",
  193. "postcss",
  194. "focus-visible",
  195. "path-browserify",
  196. "deep-merge",
  197. "escape-string-regexp",
  198. "is-plain-object",
  199. "parse-srcset",
  200. "deepmerge",
  201. "core-js/features/reflect",
  202. "@formatjs/intl-locale/polyfill",
  203. "@formatjs/intl-locale/should-polyfill",
  204. "@formatjs/intl-pluralrules/polyfill-force",
  205. "@formatjs/intl-pluralrules/should-polyfill"
  206. ],
  207. "scripts": [],
  208. "vendorChunk": true,
  209. "extractLicenses": false,
  210. "buildOptimizer": false,
  211. "sourceMap": true,
  212. "optimization": false,
  213. "namedChunks": true
  214. },
  215. "configurations": {
  216. "production": {
  217. "optimization": true,
  218. "outputHashing": "all",
  219. "sourceMap": false,
  220. "namedChunks": false,
  221. "extractLicenses": true,
  222. "vendorChunk": false,
  223. "buildOptimizer": true,
  224. "serviceWorker": true,
  225. "ngswConfigPath": "src/ngsw-config.json",
  226. "budgets": [
  227. {
  228. "type": "initial",
  229. "maximumWarning": "2mb",
  230. "maximumError": "5mb"
  231. },
  232. {
  233. "type": "anyComponentStyle",
  234. "maximumWarning": "6kb",
  235. "maximumError": "100kb"
  236. }
  237. ],
  238. "fileReplacements": [
  239. {
  240. "replace": "src/environments/environment.ts",
  241. "with": "src/environments/environment.prod.ts"
  242. }
  243. ]
  244. },
  245. "ar-locale": {
  246. "localize": [
  247. "ar"
  248. ],
  249. "budgets": [
  250. {
  251. "type": "anyComponentStyle",
  252. "maximumWarning": "6kb"
  253. }
  254. ],
  255. "fileReplacements": [
  256. {
  257. "replace": "src/environments/environment.ts",
  258. "with": "src/environments/environment.hmr.ts"
  259. }
  260. ]
  261. },
  262. "hmr": {
  263. "localize": false,
  264. "budgets": [
  265. {
  266. "type": "anyComponentStyle",
  267. "maximumWarning": "6kb"
  268. }
  269. ],
  270. "fileReplacements": [
  271. {
  272. "replace": "src/environments/environment.ts",
  273. "with": "src/environments/environment.hmr.ts"
  274. }
  275. ]
  276. }
  277. }
  278. },
  279. "serve": {
  280. "builder": "@angular-devkit/build-angular:dev-server",
  281. "options": {
  282. "proxyConfig": "proxy.config.json",
  283. "buildTarget": "PeerTube:build"
  284. },
  285. "configurations": {
  286. "production": {
  287. "buildTarget": "PeerTube:build:production"
  288. },
  289. "hmr": {
  290. "buildTarget": "PeerTube:build:hmr"
  291. },
  292. "ar-locale": {
  293. "buildTarget": "PeerTube:build:ar-locale"
  294. }
  295. }
  296. },
  297. "extract-i18n": {
  298. "builder": "@angular-devkit/build-angular:extract-i18n",
  299. "options": {
  300. "buildTarget": "PeerTube:build"
  301. }
  302. },
  303. "lint": {
  304. "builder": "@angular-eslint/builder:lint",
  305. "options": {
  306. "lintFilePatterns": [
  307. "e2e/**/*.ts",
  308. "src/**/*.ts",
  309. "src/**/*.html"
  310. ]
  311. }
  312. }
  313. }
  314. }
  315. },
  316. "schematics": {
  317. "@schematics/angular:component": {
  318. "prefix": "my",
  319. "style": "scss",
  320. "skipTests": true,
  321. "flat": true
  322. },
  323. "@schematics/angular:directive": {
  324. "prefix": "my"
  325. },
  326. "@angular-eslint/schematics:application": {
  327. "setParserOptionsProject": true
  328. },
  329. "@angular-eslint/schematics:library": {
  330. "setParserOptionsProject": true
  331. }
  332. },
  333. "cli": {
  334. "analytics": false
  335. }
  336. }