angular.json 3.9 KB

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