angular.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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/build:application",
  16. "options": {
  17. "outputPath": "dist/demovote-frontend",
  18. "baseHref": "./",
  19. "index": "src/index.html",
  20. "browser": "src/main.ts",
  21. "polyfills": [
  22. "zone.js",
  23. "@angular/localize/init"
  24. ],
  25. "tsConfig": "tsconfig.app.json",
  26. "assets": [
  27. {
  28. "glob": "**/*",
  29. "input": "public"
  30. }
  31. ],
  32. "styles": [
  33. "node_modules/bootstrap/dist/css/bootstrap.min.css",
  34. "node_modules/@fortawesome/fontawesome-free/css/all.css",
  35. "src/styles.css"
  36. ],
  37. "scripts": [
  38. "node_modules/jquery/dist/jquery.min.js",
  39. "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
  40. ]
  41. },
  42. "configurations": {
  43. "production": {
  44. "budgets": [
  45. {
  46. "type": "initial",
  47. "maximumWarning": "2MB",
  48. "maximumError": "2MB"
  49. },
  50. {
  51. "type": "anyComponentStyle",
  52. "maximumWarning": "4kB",
  53. "maximumError": "8kB"
  54. }
  55. ],
  56. "outputHashing": "all"
  57. },
  58. "development": {
  59. "optimization": false,
  60. "extractLicenses": false,
  61. "sourceMap": true,
  62. "fileReplacements": [ { "replace": "src/app/env.ts", "with": "src/app/env.dev.ts" }]
  63. }
  64. },
  65. "defaultConfiguration": "production"
  66. },
  67. "serve": {
  68. "builder": "@angular/build:dev-server",
  69. "options": {
  70. "proxyConfig": "src/proxy.conf.json"
  71. "ssl": true,
  72. "sslKey": "src/assets/ssl/key.pem",
  73. "sslCert": "src/assets/ssl/cert.pem"
  74. },
  75. "configurations": {
  76. "production": {
  77. "buildTarget": "demovote-frontend:build:production"
  78. },
  79. "development": {
  80. "buildTarget": "demovote-frontend:build:development"
  81. }
  82. },
  83. "defaultConfiguration": "development"
  84. },
  85. "extract-i18n": {
  86. "builder": "@angular/build:extract-i18n"
  87. },
  88. "test": {
  89. "builder": "@angular/build:karma",
  90. "options": {
  91. "polyfills": [
  92. "zone.js",
  93. "zone.js/testing",
  94. "@angular/localize/init"
  95. ],
  96. "tsConfig": "tsconfig.spec.json",
  97. "assets": [
  98. {
  99. "glob": "**/*",
  100. "input": "public"
  101. }
  102. ],
  103. "styles": [
  104. "src/styles.css"
  105. ],
  106. "scripts": []
  107. }
  108. }
  109. }
  110. }
  111. },
  112. "schematics": {
  113. "@schematics/angular:component": {
  114. "type": "component"
  115. },
  116. "@schematics/angular:directive": {
  117. "type": "directive"
  118. },
  119. "@schematics/angular:service": {
  120. "type": "service"
  121. },
  122. "@schematics/angular:guard": {
  123. "typeSeparator": "."
  124. },
  125. "@schematics/angular:interceptor": {
  126. "typeSeparator": "."
  127. },
  128. "@schematics/angular:module": {
  129. "typeSeparator": "."
  130. },
  131. "@schematics/angular:pipe": {
  132. "typeSeparator": "."
  133. },
  134. "@schematics/angular:resolver": {
  135. "typeSeparator": "."
  136. }
  137. }
  138. }