angular.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. ],
  33. "scripts": [
  34. "node_modules/jquery/dist/jquery.min.js",
  35. "node_modules/bootstrap/dist/js/bootstrap.min.js"]
  36. },
  37. "configurations": {
  38. "production": {
  39. "budgets": [
  40. {
  41. "type": "initial",
  42. "maximumWarning": "500kB",
  43. "maximumError": "1MB"
  44. },
  45. {
  46. "type": "anyComponentStyle",
  47. "maximumWarning": "4kB",
  48. "maximumError": "8kB"
  49. }
  50. ],
  51. "outputHashing": "all"
  52. },
  53. "development": {
  54. "optimization": false,
  55. "extractLicenses": false,
  56. "sourceMap": true
  57. }
  58. },
  59. "defaultConfiguration": "production"
  60. },
  61. "serve": {
  62. "builder": "@angular-devkit/build-angular:dev-server",
  63. "configurations": {
  64. "production": {
  65. "buildTarget": "demovote-frontend:build:production"
  66. },
  67. "development": {
  68. "buildTarget": "demovote-frontend:build:development"
  69. }
  70. },
  71. "defaultConfiguration": "development"
  72. },
  73. "extract-i18n": {
  74. "builder": "@angular-devkit/build-angular:extract-i18n"
  75. },
  76. "test": {
  77. "builder": "@angular-devkit/build-angular:karma",
  78. "options": {
  79. "polyfills": [
  80. "zone.js",
  81. "zone.js/testing"
  82. ],
  83. "tsConfig": "tsconfig.spec.json",
  84. "assets": [
  85. {
  86. "glob": "**/*",
  87. "input": "public"
  88. }
  89. ],
  90. "styles": [
  91. "src/styles.css"
  92. ],
  93. "scripts": []
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }