angular.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. "hu": {
  21. "translation": "src/locale/angular.hu-HU.xlf",
  22. "baseHref": "/client/hu-HU/"
  23. },
  24. "th": {
  25. "translation": "src/locale/angular.th-TH.xlf",
  26. "baseHref": "/client/th-TH/"
  27. },
  28. "fi": {
  29. "translation": "src/locale/angular.fi-FI.xlf",
  30. "baseHref": "/client/fi-FI/"
  31. },
  32. "nl": {
  33. "translation": "src/locale/angular.nl-NL.xlf",
  34. "baseHref": "/client/nl-NL/"
  35. },
  36. "gd": {
  37. "translation": "src/locale/angular.gd.xlf",
  38. "baseHref": "/client/gd/"
  39. },
  40. "el": {
  41. "translation": "src/locale/angular.el-GR.xlf",
  42. "baseHref": "/client/el-GR/"
  43. },
  44. "es": {
  45. "translation": "src/locale/angular.es-ES.xlf",
  46. "baseHref": "/client/es-ES/"
  47. },
  48. "oc": {
  49. "translation": "src/locale/angular.oc.xlf",
  50. "baseHref": "/client/oc/"
  51. },
  52. "pt": {
  53. "translation": "src/locale/angular.pt-BR.xlf",
  54. "baseHref": "/client/pt-BR/"
  55. },
  56. "pt-PT": {
  57. "translation": "src/locale/angular.pt-PT.xlf",
  58. "baseHref": "/client/pt-PT/"
  59. },
  60. "sv": {
  61. "translation": "src/locale/angular.sv-SE.xlf",
  62. "baseHref": "/client/sv-SE/"
  63. },
  64. "pl": {
  65. "translation": "src/locale/angular.pl-PL.xlf",
  66. "baseHref": "/client/pl-PL/"
  67. },
  68. "ru": {
  69. "translation": "src/locale/angular.ru-RU.xlf",
  70. "baseHref": "/client/ru-RU/"
  71. },
  72. "zh-Hans": {
  73. "translation": "src/locale/angular.zh-Hans-CN.xlf",
  74. "baseHref": "/client/zh-Hans-CN/"
  75. },
  76. "zh-Hant": {
  77. "translation": "src/locale/angular.zh-Hant-TW.xlf",
  78. "baseHref": "/client/zh-Hant-TW/"
  79. },
  80. "fr": {
  81. "translation": "src/locale/angular.fr-FR.xlf",
  82. "baseHref": "/client/fr-FR/"
  83. },
  84. "ja": {
  85. "translation": "src/locale/angular.ja-JP.xlf",
  86. "baseHref": "/client/ja-JP/"
  87. },
  88. "eu": {
  89. "translation": "src/locale/angular.eu-ES.xlf",
  90. "baseHref": "/client/eu-ES/"
  91. },
  92. "ca": {
  93. "translation": "src/locale/angular.ca-ES.xlf",
  94. "baseHref": "/client/ca-ES/"
  95. },
  96. "gl": {
  97. "translation": "src/locale/angular.gl-ES.xlf",
  98. "baseHref": "/client/gl-ES/"
  99. },
  100. "cs": {
  101. "translation": "src/locale/angular.cs-CZ.xlf",
  102. "baseHref": "/client/cs-CZ/"
  103. },
  104. "eo": {
  105. "translation": "src/locale/angular.eo.xlf",
  106. "baseHref": "/client/eo/"
  107. },
  108. "de": {
  109. "translation": "src/locale/angular.de-DE.xlf",
  110. "baseHref": "/client/de-DE/"
  111. },
  112. "it": {
  113. "translation": "src/locale/angular.it-IT.xlf",
  114. "baseHref": "/client/it-IT/"
  115. },
  116. "vi": {
  117. "translation": "src/locale/angular.vi-VN.xlf",
  118. "baseHref": "/client/vi-VN/"
  119. },
  120. "kab": {
  121. "translation": "src/locale/angular.kab.xlf",
  122. "baseHref": "/client/kab/"
  123. }
  124. }
  125. },
  126. "architect": {
  127. "build": {
  128. "builder": "@angular-devkit/build-angular:browser",
  129. "options": {
  130. "aot": true,
  131. "localize": true,
  132. "outputPath": "dist",
  133. "index": "src/index.html",
  134. "main": "src/main.ts",
  135. "tsConfig": "tsconfig.app.json",
  136. "polyfills": "src/polyfills.ts",
  137. "stylePreprocessorOptions": {
  138. "includePaths": [
  139. "src/sass/include"
  140. ]
  141. },
  142. "assets": [
  143. "src/assets/images",
  144. "src/manifest.webmanifest"
  145. ],
  146. "styles": [
  147. "src/sass/application.scss"
  148. ],
  149. "allowedCommonJsDependencies": [
  150. "@angularclass/hmr",
  151. "debug",
  152. "mousetrap",
  153. "chart.js",
  154. "linkifyjs/html",
  155. "linkifyjs",
  156. "markdown-it",
  157. "markdown-it-emoji/light",
  158. "sanitize-html",
  159. "socket.io-client",
  160. "socket.io-parser",
  161. "@app/+about/about-peertube/about-peertube-contributors.component",
  162. "path",
  163. "video.js",
  164. "p2p-media-loader-hlsjs",
  165. "videojs-hotkeys/videojs.hotkeys",
  166. "p2p-media-loader-core",
  167. "qrcode",
  168. "webtorrent",
  169. "cache-chunk-store",
  170. "global/document",
  171. "videojs-vtt.js",
  172. "videojs-vtt.js",
  173. "@babel/runtime/helpers/possibleConstructorReturn",
  174. "@babel/runtime/helpers/inherits",
  175. "@babel/runtime/helpers/construct",
  176. "@videojs/xhr",
  177. "htmlparser2",
  178. "url",
  179. "parse-srcset",
  180. "postcss"
  181. ],
  182. "scripts": []
  183. },
  184. "configurations": {
  185. "production": {
  186. "optimization": true,
  187. "outputHashing": "all",
  188. "sourceMap": false,
  189. "namedChunks": false,
  190. "aot": true,
  191. "extractLicenses": true,
  192. "vendorChunk": false,
  193. "buildOptimizer": true,
  194. "serviceWorker": true,
  195. "ngswConfigPath": "src/ngsw-config.json",
  196. "budgets": [
  197. {
  198. "type": "initial",
  199. "maximumWarning": "2mb",
  200. "maximumError": "5mb"
  201. },
  202. {
  203. "type": "anyComponentStyle",
  204. "maximumWarning": "6kb",
  205. "maximumError": "50kb"
  206. }
  207. ],
  208. "fileReplacements": [
  209. {
  210. "replace": "src/environments/environment.ts",
  211. "with": "src/environments/environment.prod.ts"
  212. }
  213. ]
  214. },
  215. "hmr": {
  216. "localize": false,
  217. "budgets": [
  218. {
  219. "type": "anyComponentStyle",
  220. "maximumWarning": "6kb"
  221. }
  222. ],
  223. "fileReplacements": [
  224. {
  225. "replace": "src/environments/environment.ts",
  226. "with": "src/environments/environment.hmr.ts"
  227. }
  228. ]
  229. },
  230. "e2e": {
  231. "localize": false,
  232. "budgets": [
  233. {
  234. "type": "anyComponentStyle",
  235. "maximumWarning": "6kb"
  236. }
  237. ],
  238. "fileReplacements": [
  239. {
  240. "replace": "src/environments/environment.ts",
  241. "with": "src/environments/environment.e2e.ts"
  242. }
  243. ]
  244. }
  245. }
  246. },
  247. "serve": {
  248. "builder": "@angular-devkit/build-angular:dev-server",
  249. "options": {
  250. "baseHref": "/",
  251. "deployUrl": "client/",
  252. "browserTarget": "PeerTube:build",
  253. "proxyConfig": "proxy.config.json"
  254. },
  255. "configurations": {
  256. "production": {
  257. "browserTarget": "PeerTube:build:production"
  258. },
  259. "hmr": {
  260. "browserTarget": "PeerTube:build:hmr"
  261. },
  262. "e2e": {
  263. "browserTarget": "PeerTube:build:e2e",
  264. "proxyConfig": "e2e/proxy.config.json"
  265. }
  266. }
  267. },
  268. "extract-i18n": {
  269. "builder": "@angular-devkit/build-angular:extract-i18n",
  270. "options": {
  271. "browserTarget": "PeerTube:build"
  272. }
  273. },
  274. "test": {
  275. "builder": "@angular-devkit/build-angular:karma",
  276. "options": {
  277. "main": "src/test.ts",
  278. "karmaConfig": "./karma.conf.js",
  279. "polyfills": "src/polyfills.ts",
  280. "tsConfig": "src/tsconfig.spec.json",
  281. "scripts": [],
  282. "styles": [
  283. "src/sass/application.scss"
  284. ],
  285. "assets": [
  286. "src/assets/images",
  287. "src/manifest.webmanifest"
  288. ]
  289. }
  290. },
  291. "lint": {
  292. "builder": "@angular-devkit/build-angular:tslint",
  293. "options": {
  294. "tsConfig": [
  295. "tsconfig.app.json"
  296. ],
  297. "exclude": [
  298. "**/node_modules/**"
  299. ]
  300. }
  301. },
  302. "xliffmerge": {
  303. "builder": "@ngx-i18nsupport/tooling:xliffmerge",
  304. "options": {
  305. "xliffmergeOptions": {
  306. "i18nFormat": "xlf",
  307. "srcDir": "src/locale",
  308. "genDir": "src/locale",
  309. "i18nBaseFile": "angular",
  310. "defaultLanguage": "en-US",
  311. "languages": [
  312. "ar",
  313. "ca-ES",
  314. "gl-ES",
  315. "cs-CZ",
  316. "da-DK",
  317. "de-DE",
  318. "el-GR",
  319. "en-GB",
  320. "en-US",
  321. "eo",
  322. "es-ES",
  323. "eu-ES",
  324. "fa-IR",
  325. "fi-FI",
  326. "fr-FR",
  327. "gd",
  328. "gl-ES",
  329. "hu-HU",
  330. "it-IT",
  331. "ja-JP",
  332. "jbo",
  333. "kab",
  334. "ko-KR",
  335. "lt-LT",
  336. "nb-NO",
  337. "nl-NL",
  338. "oc",
  339. "pl-PL",
  340. "pt-BR",
  341. "pt-PT",
  342. "ru-RU",
  343. "sk-SK",
  344. "sl-SI",
  345. "sv-SE",
  346. "ta",
  347. "th-TH",
  348. "tr-TR",
  349. "uk-UA",
  350. "vi-VN",
  351. "zh-Hans-CN",
  352. "zh-Hant-TW"
  353. ]
  354. }
  355. }
  356. }
  357. }
  358. },
  359. "PeerTube-e2e": {
  360. "root": "e2e/",
  361. "sourceRoot": "",
  362. "projectType": "application",
  363. "architect": {
  364. "e2e": {
  365. "builder": "@angular-devkit/build-angular:protractor",
  366. "options": {
  367. "protractorConfig": "e2e/protractor.conf.js",
  368. "devServerTarget": "PeerTube:serve:e2e"
  369. },
  370. "configurations": {
  371. "local": {
  372. "protractorConfig": "e2e/local-protractor.conf.js"
  373. }
  374. }
  375. },
  376. "lint": {
  377. "builder": "@angular-devkit/build-angular:tslint",
  378. "options": {
  379. "tsConfig": [
  380. "e2e/tsconfig.e2e.json"
  381. ],
  382. "exclude": [
  383. "**/node_modules/**"
  384. ]
  385. }
  386. }
  387. }
  388. }
  389. },
  390. "defaultProject": "PeerTube",
  391. "schematics": {
  392. "@schematics/angular:component": {
  393. "prefix": "app",
  394. "style": "scss"
  395. },
  396. "@schematics/angular:directive": {
  397. "prefix": "app"
  398. }
  399. }
  400. }