angular.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "frontend": {
  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/build:application",
  19. "options": {
  20. "browser": "src/main.ts",
  21. "polyfills": [
  22. "zone.js"
  23. ],
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "assets": [
  27. {
  28. "glob": "**/*",
  29. "input": "public"
  30. },
  31. {
  32. "glob": "**/*",
  33. "input": "src/assets",
  34. "output": "/assets/"
  35. }
  36. ],
  37. "styles": [
  38. "src/styles.scss"
  39. ]
  40. },
  41. "configurations": {
  42. "production": {
  43. "budgets": [
  44. {
  45. "type": "initial",
  46. "maximumWarning": "2MB",
  47. "maximumError": "4MB"
  48. },
  49. {
  50. "type": "anyComponentStyle",
  51. "maximumWarning": "4kB",
  52. "maximumError": "8kB"
  53. }
  54. ],
  55. "outputHashing": "all"
  56. },
  57. "development": {
  58. "optimization": false,
  59. "extractLicenses": false,
  60. "sourceMap": true
  61. }
  62. },
  63. "defaultConfiguration": "production"
  64. },
  65. "serve": {
  66. "builder": "@angular/build:dev-server",
  67. "configurations": {
  68. "production": {
  69. "buildTarget": "frontend:build:production"
  70. },
  71. "development": {
  72. "buildTarget": "frontend:build:development"
  73. }
  74. },
  75. "defaultConfiguration": "development"
  76. },
  77. "extract-i18n": {
  78. "builder": "@angular/build:extract-i18n"
  79. },
  80. "test": {
  81. "builder": "@angular/build:karma",
  82. "options": {
  83. "polyfills": [
  84. "zone.js",
  85. "zone.js/testing"
  86. ],
  87. "tsConfig": "tsconfig.spec.json",
  88. "inlineStyleLanguage": "scss",
  89. "assets": [
  90. {
  91. "glob": "**/*",
  92. "input": "public"
  93. },
  94. {
  95. "glob": "**/*",
  96. "input": "src/assets",
  97. "output": "/assets/"
  98. }
  99. ],
  100. "styles": [
  101. "src/styles.scss"
  102. ]
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }