angular.json 4.0 KB

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