angular.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "test-fe": {
  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/test-fe",
  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/styles.scss",
  35. "src/app.css",
  36. "src/zwicon.css"
  37. ],
  38. "scripts": []
  39. },
  40. "configurations": {
  41. "production": {
  42. "fileReplacements": [
  43. {
  44. "replace": "src/environments/environment.ts",
  45. "with": "src/environments/environment.prod.ts"
  46. }
  47. ],
  48. "optimization": true,
  49. "outputHashing": "all",
  50. "sourceMap": false,
  51. "namedChunks": false,
  52. "extractLicenses": true,
  53. "vendorChunk": false,
  54. "buildOptimizer": true,
  55. "budgets": [
  56. {
  57. "type": "initial",
  58. "maximumWarning": "500kb",
  59. "maximumError": "1mb"
  60. },
  61. {
  62. "type": "anyComponentStyle",
  63. "maximumWarning": "2kb",
  64. "maximumError": "4kb"
  65. }
  66. ]
  67. }
  68. }
  69. },
  70. "serve": {
  71. "builder": "@angular-devkit/build-angular:dev-server",
  72. "options": {
  73. "browserTarget": "test-fe:build"
  74. },
  75. "configurations": {
  76. "production": {
  77. "browserTarget": "test-fe:build:production"
  78. }
  79. }
  80. },
  81. "extract-i18n": {
  82. "builder": "@angular-devkit/build-angular:extract-i18n",
  83. "options": {
  84. "browserTarget": "test-fe:build"
  85. }
  86. },
  87. "test": {
  88. "builder": "@angular-devkit/build-angular:karma",
  89. "options": {
  90. "main": "src/test.ts",
  91. "polyfills": "src/polyfills.ts",
  92. "tsConfig": "tsconfig.spec.json",
  93. "karmaConfig": "karma.conf.js",
  94. "assets": [
  95. "src/favicon.ico",
  96. "src/assets"
  97. ],
  98. "styles": [
  99. "src/styles.scss"
  100. ],
  101. "scripts": []
  102. }
  103. },
  104. "lint": {
  105. "builder": "@angular-devkit/build-angular:tslint",
  106. "options": {
  107. "tsConfig": [
  108. "tsconfig.app.json",
  109. "tsconfig.spec.json",
  110. "e2e/tsconfig.json"
  111. ],
  112. "exclude": [
  113. "**/node_modules/**"
  114. ]
  115. }
  116. },
  117. "e2e": {
  118. "builder": "@angular-devkit/build-angular:protractor",
  119. "options": {
  120. "protractorConfig": "e2e/protractor.conf.js",
  121. "devServerTarget": "test-fe:serve"
  122. },
  123. "configurations": {
  124. "production": {
  125. "devServerTarget": "test-fe:serve:production"
  126. }
  127. }
  128. }
  129. }
  130. }
  131. },
  132. "defaultProject": "test-fe"
  133. }