angular.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. }
  88. },
  89. "serve": {
  90. "builder": "@angular-devkit/build-angular:dev-server",
  91. "options": {
  92. "browserTarget": "hslayers-app:build"
  93. },
  94. "configurations": {
  95. "production": {
  96. "browserTarget": "hslayers-app:build:production"
  97. }
  98. }
  99. },
  100. "federated-serve": {
  101. "builder": "ngx-build-plus:dev-server",
  102. "options": {
  103. "port": 5100,
  104. "extraWebpackConfig": "./custom-webpack.config.js"
  105. },
  106. "configurations": {
  107. "production": {
  108. "browserTarget": "app:build:production"
  109. },
  110. "development": {
  111. "browserTarget": "app:build:development"
  112. }
  113. },
  114. "defaultConfiguration": "development"
  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": "fieldcalc",
  153. "cli": {
  154. "analytics": false
  155. }
  156. }