angular.json 4.5 KB

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