angular.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "hslayers-app": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "sass"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-builders/custom-webpack:browser",
  19. "options": {
  20. "sourceMap": true,
  21. "vendorChunk": true,
  22. "optimization": false,
  23. "outputPath": "build",
  24. "index": "src/index.html",
  25. "main": "src/main.ts",
  26. "polyfills": "src/polyfills.ts",
  27. "tsConfig": "tsconfig.app.json",
  28. "preserveSymlinks": true,
  29. "allowedCommonJsDependencies": [
  30. "xml-utils/find-tags-by-name",
  31. "lru-cache",
  32. "pbf",
  33. "queue",
  34. "xml-js",
  35. "geostyler-legend",
  36. "ol-popup",
  37. "geostyler-openlayers-parser",
  38. "geostyler-sld-parser",
  39. "path",
  40. "crypto"
  41. ],
  42. "assets": [
  43. {
  44. "glob": "**/*",
  45. "input": "src/assets",
  46. "output": "./assets"
  47. },
  48. {
  49. "glob": "**/*",
  50. "input": "./node_modules/hslayers-ng/src/assets",
  51. "output": "./assets"
  52. }
  53. ],
  54. "styles": [
  55. "./node_modules/hslayers-ng/css/hslayers-ng.css",
  56. "./src/styles.scss"
  57. ],
  58. "scripts": [],
  59. "customWebpackConfig": {
  60. "path": "custom-webpack.config.js"
  61. }
  62. },
  63. "configurations": {
  64. "production": {
  65. "fileReplacements": [
  66. {
  67. "replace": "src/environments/environment.ts",
  68. "with": "src/environments/environment.prod.ts"
  69. }
  70. ],
  71. "optimization": true,
  72. "outputHashing": "all",
  73. "sourceMap": true,
  74. "namedChunks": false,
  75. "extractLicenses": true,
  76. "vendorChunk": true,
  77. "buildOptimizer": true,
  78. "budgets": [
  79. {
  80. "type": "initial",
  81. "maximumWarning": "2mb",
  82. "maximumError": "5mb"
  83. },
  84. {
  85. "type": "anyComponentStyle",
  86. "maximumWarning": "200kb",
  87. "maximumError": "300kb"
  88. }
  89. ]
  90. }
  91. }
  92. },
  93. "serve": {
  94. "builder": "@angular-devkit/build-angular:dev-server",
  95. "options": {
  96. "browserTarget": "hslayers-app:build"
  97. },
  98. "configurations": {
  99. "production": {
  100. "browserTarget": "hslayers-app:build:production"
  101. }
  102. }
  103. },
  104. "extract-i18n": {
  105. "builder": "@angular-devkit/build-angular:extract-i18n",
  106. "options": {
  107. "browserTarget": "hslayers-app:build"
  108. }
  109. },
  110. "test": {
  111. "builder": "@angular-devkit/build-angular:karma",
  112. "options": {
  113. "main": "test/test.ts",
  114. "polyfills": "src/polyfills.ts",
  115. "tsConfig": "tsconfig.spec.json",
  116. "karmaConfig": "karma.conf.js",
  117. "assets": [
  118. "src/favicon.ico",
  119. "src/assets"
  120. ],
  121. "styles": [],
  122. "scripts": []
  123. }
  124. },
  125. "e2e": {
  126. "builder": "@angular-devkit/build-angular:protractor",
  127. "options": {
  128. "protractorConfig": "e2e/protractor.conf.js",
  129. "devServerTarget": "hslayers-app:serve"
  130. },
  131. "configurations": {
  132. "production": {
  133. "devServerTarget": "hslayers-app:serve:production"
  134. }
  135. }
  136. }
  137. }
  138. }
  139. },
  140. "defaultProject": "hslayers-app",
  141. "cli": {
  142. "analytics": false
  143. }
  144. }