angular.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "cli": {
  5. "packageManager": "npm",
  6. "analytics": false
  7. },
  8. "newProjectRoot": "projects",
  9. "projects": {
  10. "fmode-app-v2": {
  11. "projectType": "application",
  12. "schematics": {
  13. "@schematics/angular:component": {
  14. "style": "scss"
  15. }
  16. },
  17. "root": "",
  18. "sourceRoot": "src",
  19. "prefix": "app",
  20. "architect": {
  21. "build": {
  22. "builder": "@angular/build:application",
  23. "options": {
  24. "browser": "src/main.ts",
  25. "polyfills": [
  26. "zone.js"
  27. ],
  28. "tsConfig": "tsconfig.app.json",
  29. "inlineStyleLanguage": "scss",
  30. "assets": [
  31. {
  32. "glob": "**/*",
  33. "input": "public"
  34. }
  35. ],
  36. "styles": [
  37. "src/styles.uikit.css",
  38. "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
  39. "src/styles.uikit.scss",
  40. "node_modules/prismjs/themes/prism-okaidia.css",
  41. "src/styles.scss"
  42. ]
  43. },
  44. "configurations": {
  45. "production": {
  46. "budgets": [
  47. {
  48. "type": "initial",
  49. "maximumWarning": "500kB",
  50. "maximumError": "1MB"
  51. },
  52. {
  53. "type": "anyComponentStyle",
  54. "maximumWarning": "8kB",
  55. "maximumError": "24kB"
  56. }
  57. ],
  58. "optimization": true,
  59. "outputHashing": "all",
  60. "sourceMap": false,
  61. "fileReplacements": [
  62. {
  63. "replace": "src/environments/environment.ts",
  64. "with": "src/environments/environment.production.ts"
  65. }
  66. ]
  67. },
  68. "mock": {
  69. "optimization": false,
  70. "extractLicenses": false,
  71. "sourceMap": true,
  72. "fileReplacements": [
  73. {
  74. "replace": "src/environments/environment.ts",
  75. "with": "src/environments/environment.mock.ts"
  76. }
  77. ]
  78. },
  79. "mock-production": {
  80. "budgets": [
  81. {
  82. "type": "initial",
  83. "maximumWarning": "2MB",
  84. "maximumError": "4MB"
  85. },
  86. {
  87. "type": "anyComponentStyle",
  88. "maximumWarning": "8kB",
  89. "maximumError": "24kB"
  90. }
  91. ],
  92. "optimization": true,
  93. "outputHashing": "all",
  94. "sourceMap": false,
  95. "fileReplacements": [
  96. {
  97. "replace": "src/environments/environment.ts",
  98. "with": "src/environments/environment.mock.ts"
  99. }
  100. ]
  101. },
  102. "local": {
  103. "optimization": false,
  104. "extractLicenses": false,
  105. "sourceMap": true,
  106. "fileReplacements": [
  107. {
  108. "replace": "src/environments/environment.ts",
  109. "with": "src/environments/environment.local.ts"
  110. }
  111. ]
  112. },
  113. "development": {
  114. "optimization": false,
  115. "extractLicenses": false,
  116. "sourceMap": true
  117. }
  118. },
  119. "defaultConfiguration": "production"
  120. },
  121. "serve": {
  122. "builder": "@angular/build:dev-server",
  123. "configurations": {
  124. "production": {
  125. "buildTarget": "fmode-app-v2:build:production"
  126. },
  127. "development": {
  128. "buildTarget": "fmode-app-v2:build:development"
  129. },
  130. "mock": {
  131. "buildTarget": "fmode-app-v2:build:mock"
  132. },
  133. "local": {
  134. "buildTarget": "fmode-app-v2:build:local"
  135. },
  136. "mock": {
  137. "buildTarget": "fmode-app-v2:build:mock"
  138. }
  139. },
  140. "defaultConfiguration": "development"
  141. },
  142. "extract-i18n": {
  143. "builder": "@angular/build:extract-i18n"
  144. },
  145. "test": {
  146. "builder": "@angular/build:karma",
  147. "options": {
  148. "polyfills": [
  149. "zone.js",
  150. "zone.js/testing"
  151. ],
  152. "tsConfig": "tsconfig.spec.json",
  153. "inlineStyleLanguage": "scss",
  154. "assets": [
  155. {
  156. "glob": "**/*",
  157. "input": "public"
  158. }
  159. ],
  160. "styles": [
  161. "src/styles.uikit.css",
  162. "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
  163. "src/styles.uikit.scss",
  164. "src/styles.scss"
  165. ]
  166. }
  167. }
  168. }
  169. }
  170. }
  171. }