angular.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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",
  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. }
  129. }
  130. },
  131. "defaultProject": "fatboar",
  132. "cli": {
  133. "analytics": false
  134. }
  135. }