angular.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "fieldcalc": {
  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. "builder": "ngx-build-plus: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. "extraWebpackConfig": "custom-webpack.config.js"
  58. },
  59. "configurations": {
  60. "production": {
  61. "fileReplacements": [
  62. {
  63. "replace": "src/environments/environment.ts",
  64. "with": "src/environments/environment.prod.ts"
  65. }
  66. ],
  67. "optimization": true,
  68. "outputHashing": "all",
  69. "sourceMap": true,
  70. "namedChunks": false,
  71. "extractLicenses": true,
  72. "vendorChunk": true,
  73. "buildOptimizer": true,
  74. "budgets": [
  75. {
  76. "type": "initial",
  77. "maximumWarning": "2mb",
  78. "maximumError": "5mb"
  79. },
  80. {
  81. "type": "anyComponentStyle",
  82. "maximumWarning": "200kb",
  83. "maximumError": "300kb"
  84. }
  85. ]
  86. },
  87. "development": {
  88. "commonChunk": false,
  89. "sourceMap": {
  90. "scripts": true,
  91. "styles": true,
  92. "vendor": true
  93. },
  94. "buildOptimizer": false,
  95. "optimization": false,
  96. "vendorChunk": true,
  97. "extractLicenses": false,
  98. "namedChunks": true
  99. }
  100. }
  101. },
  102. "serve": {
  103. "builder": "@angular-devkit/build-angular:dev-server",
  104. "options": {
  105. "browserTarget": "hslayers-app:build"
  106. },
  107. "configurations": {
  108. "production": {
  109. "browserTarget": "hslayers-app:build:production"
  110. }
  111. }
  112. },
  113. "federated-serve": {
  114. "builder": "ngx-build-plus:dev-server",
  115. "options": {
  116. "port": 5100,
  117. "extraWebpackConfig": "./custom-webpack.config.js"
  118. },
  119. "configurations": {
  120. "production": {
  121. "browserTarget": "fieldcalc:build:production"
  122. },
  123. "development": {
  124. "browserTarget": "fieldcalc:build:development"
  125. }
  126. },
  127. "defaultConfiguration": "development"
  128. },
  129. "extract-i18n": {
  130. "builder": "@angular-devkit/build-angular:extract-i18n",
  131. "options": {
  132. "browserTarget": "hslayers-app:build"
  133. }
  134. },
  135. "test": {
  136. "builder": "@angular-devkit/build-angular:karma",
  137. "options": {
  138. "main": "test/test.ts",
  139. "polyfills": "src/polyfills.ts",
  140. "tsConfig": "tsconfig.spec.json",
  141. "karmaConfig": "karma.conf.js",
  142. "assets": [
  143. "src/favicon.ico",
  144. "src/assets"
  145. ],
  146. "styles": [],
  147. "scripts": []
  148. }
  149. },
  150. "e2e": {
  151. "builder": "@angular-devkit/build-angular:protractor",
  152. "options": {
  153. "protractorConfig": "e2e/protractor.conf.js",
  154. "devServerTarget": "hslayers-app:serve"
  155. },
  156. "configurations": {
  157. "production": {
  158. "devServerTarget": "hslayers-app:serve:production"
  159. }
  160. }
  161. }
  162. }
  163. }
  164. },
  165. "defaultProject": "fieldcalc",
  166. "cli": {
  167. "analytics": false
  168. }
  169. }