angular.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "cli": {
  5. "packageManager": "pnpm"
  6. },
  7. "newProjectRoot": "projects",
  8. "projects": {
  9. "frontend": {
  10. "projectType": "application",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss",
  14. "skipTests": true
  15. },
  16. "@schematics/angular:class": {
  17. "skipTests": true
  18. },
  19. "@schematics/angular:directive": {
  20. "skipTests": true
  21. },
  22. "@schematics/angular:guard": {
  23. "skipTests": true
  24. },
  25. "@schematics/angular:interceptor": {
  26. "skipTests": true
  27. },
  28. "@schematics/angular:pipe": {
  29. "skipTests": true
  30. },
  31. "@schematics/angular:resolver": {
  32. "skipTests": true
  33. },
  34. "@schematics/angular:service": {
  35. "skipTests": true
  36. }
  37. },
  38. "root": "",
  39. "sourceRoot": "src",
  40. "prefix": "app",
  41. "architect": {
  42. "build": {
  43. "builder": "@angular/build:application",
  44. "options": {
  45. "browser": "src/main.ts",
  46. "polyfills": [
  47. "zone.js"
  48. ],
  49. "tsConfig": "tsconfig.app.json",
  50. "inlineStyleLanguage": "scss",
  51. "assets": [
  52. {
  53. "glob": "**/*",
  54. "input": "public"
  55. }
  56. ],
  57. "styles": [
  58. "src/styles.scss"
  59. ]
  60. },
  61. "configurations": {
  62. "production": {
  63. "budgets": [
  64. {
  65. "type": "initial",
  66. "maximumWarning": "500kB",
  67. "maximumError": "1MB"
  68. },
  69. {
  70. "type": "anyComponentStyle",
  71. "maximumWarning": "4kB",
  72. "maximumError": "8kB"
  73. }
  74. ],
  75. "outputHashing": "all"
  76. },
  77. "development": {
  78. "optimization": false,
  79. "extractLicenses": false,
  80. "sourceMap": true
  81. }
  82. },
  83. "defaultConfiguration": "production"
  84. },
  85. "serve": {
  86. "builder": "@angular/build:dev-server",
  87. "configurations": {
  88. "production": {
  89. "buildTarget": "frontend:build:production"
  90. },
  91. "development": {
  92. "buildTarget": "frontend:build:development"
  93. }
  94. },
  95. "defaultConfiguration": "development"
  96. },
  97. "extract-i18n": {
  98. "builder": "@angular/build:extract-i18n"
  99. },
  100. "test": {
  101. "builder": "@angular/build:karma",
  102. "options": {
  103. "polyfills": [
  104. "zone.js",
  105. "zone.js/testing"
  106. ],
  107. "tsConfig": "tsconfig.spec.json",
  108. "inlineStyleLanguage": "scss",
  109. "assets": [
  110. {
  111. "glob": "**/*",
  112. "input": "public"
  113. }
  114. ],
  115. "styles": [
  116. "src/styles.scss"
  117. ]
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }