angular.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "fatboar": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "app",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-devkit/build-angular:browser",
  19. "options": {
  20. "outputPath": "dist/fatboar/browser",
  21. "index": "src/index.html",
  22. "main": "src/main.ts",
  23. "polyfills": "src/polyfills.ts",
  24. "tsConfig": "tsconfig.app.json",
  25. "assets": [
  26. "src/favicon.ico",
  27. "src/assets"
  28. ],
  29. "styles": [
  30. "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  31. "src/styles.scss",
  32. "./node_modules/leaflet/dist/leaflet.css"
  33. ],
  34. "scripts": [],
  35. "vendorChunk": true,
  36. "extractLicenses": false,
  37. "buildOptimizer": false,
  38. "sourceMap": true,
  39. "optimization": false,
  40. "namedChunks": true
  41. },
  42. "configurations": {
  43. "production": {
  44. "fileReplacements": [
  45. {
  46. "replace": "src/environments/environment.ts",
  47. "with": "src/environments/environment.prod.ts"
  48. }
  49. ],
  50. "optimization": true,
  51. "outputHashing": "all",
  52. "sourceMap": false,
  53. "namedChunks": false,
  54. "extractLicenses": true,
  55. "vendorChunk": false,
  56. "buildOptimizer": true,
  57. "budgets": [
  58. {
  59. "type": "initial",
  60. "maximumWarning": "2mb",
  61. "maximumError": "5mb"
  62. },
  63. {
  64. "type": "anyComponentStyle",
  65. "maximumWarning": "6kb",
  66. "maximumError": "10kb"
  67. }
  68. ]
  69. }
  70. }
  71. },
  72. "serve": {
  73. "builder": "@angular-devkit/build-angular:dev-server",
  74. "options": {
  75. "browserTarget": "fatboar:build"
  76. },
  77. "configurations": {
  78. "production": {
  79. "browserTarget": "fatboar:build:production"
  80. }
  81. }
  82. },
  83. "extract-i18n": {
  84. "builder": "@angular-devkit/build-angular:extract-i18n",
  85. "options": {
  86. "browserTarget": "fatboar:build"
  87. }
  88. },
  89. "test": {
  90. "builder": "@angular-devkit/build-angular:karma",
  91. "options": {
  92. "main": "src/test.ts",
  93. "polyfills": "src/polyfills.ts",
  94. "tsConfig": "tsconfig.spec.json",
  95. "karmaConfig": "karma.conf.js",
  96. "assets": [
  97. "src/favicon.ico",
  98. "src/assets"
  99. ],
  100. "styles": [
  101. "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
  102. "src/styles.scss"
  103. ],
  104. "scripts": []
  105. }
  106. },
  107. "lint": {
  108. "builder": "@angular-devkit/build-angular:tslint",
  109. "options": {
  110. "tsConfig": [
  111. "tsconfig.app.json",
  112. "tsconfig.spec.json",
  113. "e2e/tsconfig.json"
  114. ],
  115. "exclude": [
  116. "**/node_modules/**"
  117. ]
  118. }
  119. },
  120. "e2e": {
  121. "builder": "@angular-devkit/build-angular:protractor",
  122. "options": {
  123. "protractorConfig": "e2e/protractor.conf.js",
  124. "devServerTarget": "fatboar:serve"
  125. },
  126. "configurations": {
  127. "production": {
  128. "devServerTarget": "fatboar:serve:production"
  129. }
  130. }
  131. },
  132. "server": {
  133. "builder": "@angular-devkit/build-angular:server",
  134. "options": {
  135. "outputPath": "dist/fatboar/server",
  136. "main": "server.ts",
  137. "tsConfig": "tsconfig.server.json"
  138. },
  139. "configurations": {
  140. "production": {
  141. "outputHashing": "media",
  142. "fileReplacements": [
  143. {
  144. "replace": "src/environments/environment.ts",
  145. "with": "src/environments/environment.prod.ts"
  146. }
  147. ],
  148. "sourceMap": false,
  149. "optimization": true
  150. }
  151. }
  152. },
  153. "serve-ssr": {
  154. "builder": "@nguniversal/builders:ssr-dev-server",
  155. "options": {
  156. "browserTarget": "fatboar:build",
  157. "serverTarget": "fatboar:server"
  158. },
  159. "configurations": {
  160. "production": {
  161. "browserTarget": "fatboar:build:production",
  162. "serverTarget": "fatboar:server:production"
  163. }
  164. }
  165. },
  166. "prerender": {
  167. "builder": "@nguniversal/builders:prerender",
  168. "options": {
  169. "browserTarget": "fatboar:build:production",
  170. "serverTarget": "fatboar:server:production",
  171. "routes": [
  172. "/"
  173. ]
  174. },
  175. "configurations": {
  176. "production": {}
  177. }
  178. }
  179. }
  180. }
  181. },
  182. "defaultProject": "fatboar",
  183. "cli": {
  184. "analytics": false
  185. }
  186. }