angular.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. "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. "fileReplacements": [ { "replace": "src/app/env.ts", "with": "src/app/env.dev.ts" }]
  62. }
  63. },
  64. "defaultConfiguration": "production"
  65. },
  66. "serve": {
  67. "builder": "@angular/build:dev-server",
  68. "options": {
  69. "proxyConfig": "src/proxy.conf.json"
  70. "ssl": true,
  71. "sslKey": "src/assets/ssl/key.pem",
  72. "sslCert": "src/assets/ssl/cert.pem"
  73. },
  74. "configurations": {
  75. "production": {
  76. "buildTarget": "demovote-frontend:build:production"
  77. },
  78. "development": {
  79. "buildTarget": "demovote-frontend:build:development"
  80. }
  81. },
  82. "defaultConfiguration": "development"
  83. },
  84. "extract-i18n": {
  85. "builder": "@angular/build:extract-i18n"
  86. },
  87. "test": {
  88. "builder": "@angular/build:karma",
  89. "options": {
  90. "polyfills": [
  91. "zone.js",
  92. "zone.js/testing",
  93. "@angular/localize/init"
  94. ],
  95. "tsConfig": "tsconfig.spec.json",
  96. "assets": [
  97. {
  98. "glob": "**/*",
  99. "input": "public"
  100. }
  101. ],
  102. "styles": [
  103. "src/styles.css"
  104. ],
  105. "scripts": []
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "schematics": {
  112. "@schematics/angular:component": {
  113. "type": "component"
  114. },
  115. "@schematics/angular:directive": {
  116. "type": "directive"
  117. },
  118. "@schematics/angular:service": {
  119. "type": "service"
  120. },
  121. "@schematics/angular:guard": {
  122. "typeSeparator": "."
  123. },
  124. "@schematics/angular:interceptor": {
  125. "typeSeparator": "."
  126. },
  127. "@schematics/angular:module": {
  128. "typeSeparator": "."
  129. },
  130. "@schematics/angular:pipe": {
  131. "typeSeparator": "."
  132. },
  133. "@schematics/angular:resolver": {
  134. "typeSeparator": "."
  135. }
  136. }
  137. }