angular.json 3.6 KB

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