angular.json 4.1 KB

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