angular.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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. "build-no-federation": {
  90. "builder": "@angular-builders/custom-webpack:browser",
  91. "options": {
  92. "sourceMap": true,
  93. "vendorChunk": true,
  94. "optimization": false,
  95. "outputPath": "build",
  96. "index": "src/index.html",
  97. "main": "src/main.ts",
  98. "polyfills": "src/polyfills.ts",
  99. "tsConfig": "tsconfig.app.json",
  100. "preserveSymlinks": true,
  101. "allowedCommonJsDependencies": [
  102. "xml-utils/find-tags-by-name",
  103. "lru-cache",
  104. "pbf",
  105. "queue",
  106. "xml-js",
  107. "geostyler-legend",
  108. "ol-popup",
  109. "geostyler-openlayers-parser",
  110. "geostyler-sld-parser"
  111. ],
  112. "assets": [
  113. {
  114. "glob": "**/*",
  115. "input": "src/assets",
  116. "output": "./assets"
  117. },
  118. {
  119. "glob": "**/*",
  120. "input": "./node_modules/hslayers-ng/src/assets",
  121. "output": "./assets"
  122. }
  123. ],
  124. "styles": [
  125. "./node_modules/hslayers-ng/css/hslayers-ng.css",
  126. "./src/styles.scss"
  127. ],
  128. "scripts": [],
  129. "customWebpackConfig": {
  130. "path": "base-webpack.config.js"
  131. }
  132. },
  133. "configurations": {
  134. "production": {
  135. "fileReplacements": [
  136. {
  137. "replace": "src/environments/environment.ts",
  138. "with": "src/environments/environment.prod.ts"
  139. }
  140. ],
  141. "optimization": true,
  142. "outputHashing": "all",
  143. "sourceMap": true,
  144. "namedChunks": false,
  145. "extractLicenses": true,
  146. "vendorChunk": true,
  147. "buildOptimizer": true,
  148. "budgets": [
  149. {
  150. "type": "initial",
  151. "maximumWarning": "2mb",
  152. "maximumError": "5mb"
  153. },
  154. {
  155. "type": "anyComponentStyle",
  156. "maximumWarning": "200kb",
  157. "maximumError": "300kb"
  158. }
  159. ],
  160. "customWebpackConfig": {
  161. "path": "base-webpack.config.js"
  162. }
  163. }
  164. }
  165. },
  166. "serve": {
  167. "builder": "@angular-builders/custom-webpack:dev-server",
  168. "options": {
  169. "browserTarget": "fieldcalc:build-no-federation"
  170. },
  171. "configurations": {
  172. "production": {
  173. "browserTarget": "fieldcalc:build-no-federation:production"
  174. }
  175. }
  176. },
  177. "federatedServe": {
  178. "builder": "ngx-build-plus:dev-server",
  179. "options": {
  180. "port": 5100,
  181. "extraWebpackConfig": "./custom-webpack.config.js"
  182. },
  183. "configurations": {
  184. "production": {
  185. "browserTarget": "fieldcalc:build:production"
  186. }
  187. }
  188. },
  189. "extract-i18n": {
  190. "builder": "@angular-devkit/build-angular:extract-i18n",
  191. "options": {
  192. "browserTarget": "fieldcalc:build"
  193. }
  194. },
  195. "test": {
  196. "builder": "@angular-devkit/build-angular:karma",
  197. "options": {
  198. "main": "test/test.ts",
  199. "polyfills": "src/polyfills.ts",
  200. "tsConfig": "tsconfig.spec.json",
  201. "karmaConfig": "karma.conf.js",
  202. "assets": [
  203. "src/favicon.ico",
  204. "src/assets"
  205. ],
  206. "styles": [],
  207. "scripts": []
  208. }
  209. },
  210. "e2e": {
  211. "builder": "@angular-devkit/build-angular:protractor",
  212. "options": {
  213. "protractorConfig": "e2e/protractor.conf.js",
  214. "devServerTarget": "fieldcalc:serve"
  215. },
  216. "configurations": {
  217. "production": {
  218. "devServerTarget": "fieldcalc:serve:production"
  219. }
  220. }
  221. }
  222. }
  223. }
  224. },
  225. "defaultProject": "fieldcalc",
  226. "cli": {
  227. "analytics": false
  228. }
  229. }