angular.json 3.8 KB

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