angular.json 5.3 KB

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