angular.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "frontend": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss",
  11. "skipTests": true
  12. },
  13. "@schematics/angular:class": {
  14. "skipTests": true
  15. },
  16. "@schematics/angular:directive": {
  17. "skipTests": true
  18. },
  19. "@schematics/angular:guard": {
  20. "skipTests": true
  21. },
  22. "@schematics/angular:interceptor": {
  23. "skipTests": true
  24. },
  25. "@schematics/angular:pipe": {
  26. "skipTests": true
  27. },
  28. "@schematics/angular:resolver": {
  29. "skipTests": true
  30. },
  31. "@schematics/angular:service": {
  32. "skipTests": true
  33. }
  34. },
  35. "root": "",
  36. "sourceRoot": "src",
  37. "prefix": "app",
  38. "architect": {
  39. "build": {
  40. "builder": "@angular-devkit/build-angular:application",
  41. "options": {
  42. "outputPath": {
  43. "base": "../src/main/resources/static",
  44. "browser" : ""
  45. },
  46. "baseHref": "/",
  47. "index": "src/index.html",
  48. "browser": "src/main.ts",
  49. "polyfills": [
  50. "zone.js"
  51. ],
  52. "tsConfig": "tsconfig.app.json",
  53. "inlineStyleLanguage": "scss",
  54. "assets": [
  55. {
  56. "glob": "**/*",
  57. "input": "public"
  58. }
  59. ],
  60. "styles": [
  61. "src/styles.scss",
  62. "node_modules/bootstrap/dist/css/bootstrap.min.css"
  63. ],
  64. "scripts": [
  65. "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
  66. ]
  67. },
  68. "configurations": {
  69. "production": {
  70. "budgets": [
  71. {
  72. "type": "initial",
  73. "maximumWarning": "500kB",
  74. "maximumError": "1MB"
  75. },
  76. {
  77. "type": "anyComponentStyle",
  78. "maximumWarning": "4kB",
  79. "maximumError": "8kB"
  80. }
  81. ],
  82. "fileReplacements": [
  83. {
  84. "replace": "src/environments/environment.ts",
  85. "with": "src/environments/environment.prod.ts"
  86. }
  87. ],
  88. "outputHashing": "all"
  89. },
  90. "development": {
  91. "optimization": false,
  92. "extractLicenses": false,
  93. "sourceMap": true
  94. }
  95. },
  96. "defaultConfiguration": "production"
  97. },
  98. "serve": {
  99. "builder": "@angular-devkit/build-angular:dev-server",
  100. "options": {
  101. "proxyConfig": "proxy.conf.json"
  102. },
  103. "configurations": {
  104. "production": {
  105. "buildTarget": "frontend:build:production"
  106. },
  107. "development": {
  108. "buildTarget": "frontend:build:development"
  109. }
  110. },
  111. "defaultConfiguration": "development"
  112. },
  113. "extract-i18n": {
  114. "builder": "@angular-devkit/build-angular:extract-i18n"
  115. },
  116. "test": {
  117. "builder": "@angular-devkit/build-angular:karma",
  118. "options": {
  119. "polyfills": [
  120. "zone.js",
  121. "zone.js/testing"
  122. ],
  123. "tsConfig": "tsconfig.spec.json",
  124. "inlineStyleLanguage": "scss",
  125. "assets": [
  126. {
  127. "glob": "**/*",
  128. "input": "public"
  129. }
  130. ],
  131. "styles": [
  132. "src/styles.scss"
  133. ],
  134. "scripts": []
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }