angular.json 5.3 KB

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