angular.json 2.8 KB

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