angular.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. "ignore": ["**/all_data.csv"],
  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. "development": {
  65. "buildOptimizer": false,
  66. "optimization": false,
  67. "vendorChunk": true,
  68. "extractLicenses": false,
  69. "sourceMap": true,
  70. "namedChunks": true
  71. },
  72. "production": {
  73. "fileReplacements": [
  74. {
  75. "replace": "src/environments/environment.ts",
  76. "with": "src/environments/environment.prod.ts"
  77. }
  78. ],
  79. "optimization": true,
  80. "outputHashing": "all",
  81. "sourceMap": true,
  82. "namedChunks": false,
  83. "extractLicenses": true,
  84. "vendorChunk": true,
  85. "buildOptimizer": true,
  86. "budgets": [
  87. {
  88. "type": "initial",
  89. "maximumWarning": "2mb",
  90. "maximumError": "10mb"
  91. },
  92. {
  93. "type": "anyComponentStyle",
  94. "maximumWarning": "200kb",
  95. "maximumError": "300kb"
  96. }
  97. ]
  98. }
  99. }
  100. },
  101. "serve": {
  102. "builder": "@angular-devkit/build-angular:dev-server",
  103. "defaultConfiguration": "development",
  104. "options": {
  105. "browserTarget": "hslayers-app:build"
  106. },
  107. "configurations": {
  108. "production": {
  109. "browserTarget": "hslayers-app:build:production"
  110. },
  111. "development": {
  112. "browserTarget": "hslayers-app:build:development"
  113. }
  114. }
  115. },
  116. "extract-i18n": {
  117. "builder": "@angular-devkit/build-angular:extract-i18n",
  118. "options": {
  119. "browserTarget": "hslayers-app:build"
  120. }
  121. },
  122. "test": {
  123. "builder": "@angular-devkit/build-angular:karma",
  124. "options": {
  125. "main": "test/test.ts",
  126. "polyfills": "src/polyfills.ts",
  127. "tsConfig": "tsconfig.spec.json",
  128. "karmaConfig": "karma.conf.js",
  129. "assets": [
  130. "src/favicon.ico",
  131. "src/assets"
  132. ],
  133. "styles": [],
  134. "scripts": []
  135. }
  136. },
  137. "e2e": {
  138. "builder": "@angular-devkit/build-angular:protractor",
  139. "options": {
  140. "protractorConfig": "e2e/protractor.conf.js",
  141. "devServerTarget": "hslayers-app:serve"
  142. },
  143. "configurations": {
  144. "production": {
  145. "devServerTarget": "hslayers-app:serve:production"
  146. }
  147. }
  148. }
  149. }
  150. }
  151. },
  152. "defaultProject": "hslayers-app",
  153. "cli": {
  154. "analytics": false
  155. }
  156. }