angular.json 2.6 KB

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