angular.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "frontend-client": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  11. },
  12. "@schematics/angular:application": {
  13. "strict": true
  14. }
  15. },
  16. "root": "",
  17. "sourceRoot": "src",
  18. "prefix": "app",
  19. "architect": {
  20. "build": {
  21. "builder": "@angular-devkit/build-angular:browser",
  22. "options": {
  23. "outputPath": "dist/frontend-client",
  24. "index": "src/index.html",
  25. "main": "src/main.ts",
  26. "polyfills": "src/polyfills.ts",
  27. "tsConfig": "tsconfig.app.json",
  28. "aot": true,
  29. "assets": [
  30. "src/favicon.ico",
  31. "src/assets"
  32. ],
  33. "styles": [
  34. "src/assets/styles/styles.scss"
  35. ],
  36. "scripts": []
  37. },
  38. "configurations": {
  39. "production": {
  40. "fileReplacements": [
  41. {
  42. "replace": "src/environments/environment.ts",
  43. "with": "src/environments/environment.prod.ts"
  44. }
  45. ],
  46. "optimization": true,
  47. "outputHashing": "all",
  48. "sourceMap": false,
  49. "namedChunks": false,
  50. "extractLicenses": true,
  51. "vendorChunk": false,
  52. "buildOptimizer": true,
  53. "budgets": [
  54. {
  55. "type": "initial",
  56. "maximumWarning": "500kb",
  57. "maximumError": "1mb"
  58. },
  59. {
  60. "type": "anyComponentStyle",
  61. "maximumWarning": "2kb",
  62. "maximumError": "4kb"
  63. }
  64. ]
  65. }
  66. }
  67. },
  68. "serve": {
  69. "builder": "@angular-devkit/build-angular:dev-server",
  70. "options": {
  71. "browserTarget": "frontend-client:build"
  72. },
  73. "configurations": {
  74. "production": {
  75. "browserTarget": "frontend-client:build:production"
  76. }
  77. }
  78. },
  79. "extract-i18n": {
  80. "builder": "@angular-devkit/build-angular:extract-i18n",
  81. "options": {
  82. "browserTarget": "frontend-client:build"
  83. }
  84. },
  85. "test": {
  86. "builder": "@angular-devkit/build-angular:karma",
  87. "options": {
  88. "main": "src/test.ts",
  89. "polyfills": "src/polyfills.ts",
  90. "tsConfig": "tsconfig.spec.json",
  91. "karmaConfig": "karma.conf.js",
  92. "assets": [
  93. "src/favicon.ico",
  94. "src/assets"
  95. ],
  96. "styles": [
  97. "src/styles.scss"
  98. ],
  99. "scripts": []
  100. }
  101. },
  102. "lint": {
  103. "builder": "@angular-devkit/build-angular:tslint",
  104. "options": {
  105. "tsConfig": [
  106. "tsconfig.app.json",
  107. "tsconfig.spec.json",
  108. "e2e/tsconfig.json"
  109. ],
  110. "exclude": [
  111. "**/node_modules/**"
  112. ]
  113. }
  114. },
  115. "e2e": {
  116. "builder": "@angular-devkit/build-angular:protractor",
  117. "options": {
  118. "protractorConfig": "e2e/protractor.conf.js",
  119. "devServerTarget": "frontend-client:serve"
  120. },
  121. "configurations": {
  122. "production": {
  123. "devServerTarget": "frontend-client:serve:production"
  124. }
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "defaultProject": "frontend-client"
  131. }