angular.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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": { "@schematics/angular": { "component": { "skipTests": true, "style": "css" }, "module": { "skipTests": true, "style": "css" }, "service": { "skipTests": true, "style": "css" } } },
  9. "root": "",
  10. "sourceRoot": "src",
  11. "prefix": "app",
  12. "i18n": { "sourceLocale": "fr" },
  13. "architect": {
  14. "build": {
  15. "builder": "@angular-devkit/build-angular:application",
  16. "options": {
  17. "outputPath": "dist/demovote-frontend",
  18. "index": "src/index.html",
  19. "browser": "src/main.ts",
  20. "polyfills": [
  21. "zone.js",
  22. "@angular/localize/init"
  23. ],
  24. "tsConfig": "tsconfig.app.json",
  25. "assets": [
  26. {
  27. "glob": "**/*",
  28. "input": "public"
  29. }
  30. ],
  31. "styles": [
  32. "node_modules/bootstrap/dist/css/bootstrap.min.css",
  33. "node_modules/@fortawesome/fontawesome-free/css/all.css",
  34. "src/styles.css"
  35. ],
  36. "scripts": [
  37. "node_modules/jquery/dist/jquery.min.js",
  38. "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
  39. ]
  40. },
  41. "configurations": {
  42. "production": {
  43. "budgets": [
  44. {
  45. "type": "initial",
  46. "maximumWarning": "500kB",
  47. "maximumError": "1MB"
  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-devkit/build-angular:dev-server",
  67. "configurations": {
  68. "production": {
  69. "buildTarget": "demovote-frontend:build:production"
  70. },
  71. "development": {
  72. "buildTarget": "demovote-frontend:build:development"
  73. }
  74. },
  75. "defaultConfiguration": "development"
  76. },
  77. "extract-i18n": {
  78. "builder": "@angular-devkit/build-angular:extract-i18n"
  79. },
  80. "test": {
  81. "builder": "@angular-devkit/build-angular:karma",
  82. "options": {
  83. "polyfills": [
  84. "zone.js",
  85. "zone.js/testing",
  86. "@angular/localize/init"
  87. ],
  88. "tsConfig": "tsconfig.spec.json",
  89. "assets": [
  90. {
  91. "glob": "**/*",
  92. "input": "public"
  93. }
  94. ],
  95. "styles": [
  96. "src/styles.css"
  97. ],
  98. "scripts": []
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }