angular.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "spa-client": {
  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:application",
  19. "options": {
  20. "outputPath": "dist/spa-client",
  21. "index": "src/index.html",
  22. "browser": "src/main.ts",
  23. "polyfills": [
  24. "zone.js"
  25. ],
  26. "tsConfig": "tsconfig.app.json",
  27. "inlineStyleLanguage": "scss",
  28. "assets": [
  29. {
  30. "glob": "**/*",
  31. "input": "public"
  32. }
  33. ],
  34. "styles": [
  35. "src/styles.scss"
  36. ],
  37. "scripts": []
  38. },
  39. "configurations": {
  40. "production": {
  41. "budgets": [
  42. {
  43. "type": "initial",
  44. "maximumWarning": "500kB",
  45. "maximumError": "1MB"
  46. },
  47. {
  48. "type": "anyComponentStyle",
  49. "maximumWarning": "2kB",
  50. "maximumError": "4kB"
  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-devkit/build-angular:dev-server",
  65. "configurations": {
  66. "production": {
  67. "buildTarget": "spa-client:build:production"
  68. },
  69. "development": {
  70. "buildTarget": "spa-client:build:development",
  71. "host": "127.0.0.1"
  72. }
  73. },
  74. "defaultConfiguration": "development"
  75. },
  76. "extract-i18n": {
  77. "builder": "@angular-devkit/build-angular:extract-i18n"
  78. },
  79. "test": {
  80. "builder": "@angular-devkit/build-angular:karma",
  81. "options": {
  82. "polyfills": [
  83. "zone.js",
  84. "zone.js/testing"
  85. ],
  86. "tsConfig": "tsconfig.spec.json",
  87. "inlineStyleLanguage": "scss",
  88. "assets": [
  89. {
  90. "glob": "**/*",
  91. "input": "public"
  92. }
  93. ],
  94. "styles": [
  95. "src/styles.scss"
  96. ],
  97. "scripts": []
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }