angular.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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": "2MB",
  47. "maximumError": "2MB"
  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. "options": {
  68. "proxyConfig": "src/proxy.conf.json"
  69. "ssl": true,
  70. "sslKey": "src/assets/ssl/key.pem",
  71. "sslCert": "src/assets/ssl/cert.pem"
  72. },
  73. "configurations": {
  74. "production": {
  75. "buildTarget": "demovote-frontend:build:production"
  76. },
  77. "development": {
  78. "buildTarget": "demovote-frontend:build:development"
  79. }
  80. },
  81. "defaultConfiguration": "development"
  82. },
  83. "extract-i18n": {
  84. "builder": "@angular-devkit/build-angular:extract-i18n"
  85. },
  86. "test": {
  87. "builder": "@angular-devkit/build-angular:karma",
  88. "options": {
  89. "polyfills": [
  90. "zone.js",
  91. "zone.js/testing",
  92. "@angular/localize/init"
  93. ],
  94. "tsConfig": "tsconfig.spec.json",
  95. "assets": [
  96. {
  97. "glob": "**/*",
  98. "input": "public"
  99. }
  100. ],
  101. "styles": [
  102. "src/styles.css"
  103. ],
  104. "scripts": []
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }