angular.json 4.0 KB

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