angular.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "boat-reservation-view": {
  7. "projectType": "application",
  8. "schematics": {},
  9. "root": "",
  10. "sourceRoot": "src",
  11. "prefix": "app",
  12. "i18n": {
  13. "sourceLocale": "en-US",
  14. "locales": {
  15. "pl": {
  16. "translation": "src/locale/messages.pl.json"
  17. },
  18. "nor": {
  19. "translation": "src/locale/messages.nor.json"
  20. }
  21. }
  22. },
  23. "architect": {
  24. "build": {
  25. "builder": "@angular-devkit/build-angular:browser",
  26. "options": {
  27. "localize": false,
  28. "i18nMissingTranslation": "error",
  29. "outputPath": "dist/boat-reservation-view",
  30. "index": "src/index.html",
  31. "main": "src/main.ts",
  32. "polyfills": [
  33. "zone.js"
  34. ],
  35. "tsConfig": "tsconfig.app.json",
  36. "assets": [
  37. "src/favicon.ico",
  38. "src/assets"
  39. ],
  40. "styles": [
  41. "src/styles.css"
  42. ],
  43. "scripts": []
  44. },
  45. "configurations": {
  46. "production": {
  47. "budgets": [
  48. {
  49. "type": "initial",
  50. "maximumWarning": "500kb",
  51. "maximumError": "1mb"
  52. },
  53. {
  54. "type": "anyComponentStyle",
  55. "maximumWarning": "2kb",
  56. "maximumError": "4kb"
  57. }
  58. ],
  59. "outputHashing": "all"
  60. },
  61. "development": {
  62. "buildOptimizer": false,
  63. "optimization": false,
  64. "vendorChunk": true,
  65. "extractLicenses": false,
  66. "sourceMap": true,
  67. "namedChunks": true
  68. },
  69. "pl": {
  70. "localize": [
  71. "pl"
  72. ]
  73. }
  74. },
  75. "defaultConfiguration": "production"
  76. },
  77. "serve": {
  78. "builder": "@angular-devkit/build-angular:dev-server",
  79. "configurations": {
  80. "production": {
  81. "browserTarget": "boat-reservation-view:build:production"
  82. },
  83. "development": {
  84. "browserTarget": "boat-reservation-view:build:development"
  85. },
  86. "pl": {
  87. "browserTarget": "boat-reservation-view:build:development,pl"
  88. }
  89. },
  90. "defaultConfiguration": "development"
  91. },
  92. "extract-i18n": {
  93. "builder": "@angular-devkit/build-angular:extract-i18n",
  94. "options": {
  95. "browserTarget": "boat-reservation-view:build",
  96. "format": "json",
  97. "outputPath": "src/locale"
  98. }
  99. },
  100. "test": {
  101. "builder": "@angular-devkit/build-angular:karma",
  102. "options": {
  103. "polyfills": [
  104. "zone.js",
  105. "zone.js/testing"
  106. ],
  107. "tsConfig": "tsconfig.spec.json",
  108. "assets": [
  109. "src/favicon.ico",
  110. "src/assets"
  111. ],
  112. "styles": [
  113. "src/styles.css"
  114. ],
  115. "scripts": []
  116. }
  117. }
  118. }
  119. }
  120. }
  121. }