angular.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "quizz": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "prefix": "app",
  11. "schematics": {},
  12. "architect": {
  13. "build": {
  14. "builder": "@angular-devkit/build-angular:browser",
  15. "options": {
  16. "outputPath": "dist/quizz",
  17. "index": "src/index.html",
  18. "main": "src/main.ts",
  19. "polyfills": "src/polyfills.ts",
  20. "tsConfig": "src/tsconfig.app.json",
  21. "assets": [
  22. "src/favicon.ico",
  23. "src/assets"
  24. ],
  25. "styles": [
  26. "src/styles.css",
  27. "node_modules/materialize-css/dist/css/materialize.min.css",
  28. "node_modules/@mdi/font/css/materialdesignicons.min.css"
  29. ],
  30. "scripts": [
  31. "node_modules/jquery/dist/jquery.min.js",
  32. "node_modules/materialize-css/dist/js/materialize.min.js"
  33. ]
  34. },
  35. "configurations": {
  36. "production": {
  37. "fileReplacements": [
  38. {
  39. "replace": "src/environments/environment.ts",
  40. "with": "src/environments/environment.prod.ts"
  41. }
  42. ],
  43. "optimization": true,
  44. "outputHashing": "all",
  45. "sourceMap": false,
  46. "extractCss": true,
  47. "namedChunks": false,
  48. "aot": true,
  49. "extractLicenses": true,
  50. "vendorChunk": false,
  51. "buildOptimizer": true
  52. }
  53. }
  54. },
  55. "serve": {
  56. "builder": "@angular-devkit/build-angular:dev-server",
  57. "options": {
  58. "browserTarget": "quizz:build"
  59. },
  60. "configurations": {
  61. "production": {
  62. "browserTarget": "quizz:build:production"
  63. }
  64. }
  65. },
  66. "extract-i18n": {
  67. "builder": "@angular-devkit/build-angular:extract-i18n",
  68. "options": {
  69. "browserTarget": "quizz:build"
  70. }
  71. },
  72. "test": {
  73. "builder": "@angular-devkit/build-angular:karma",
  74. "options": {
  75. "main": "src/test.ts",
  76. "polyfills": "src/polyfills.ts",
  77. "tsConfig": "src/tsconfig.spec.json",
  78. "karmaConfig": "src/karma.conf.js",
  79. "styles": [
  80. "src/styles.css"
  81. ],
  82. "scripts": [],
  83. "assets": [
  84. "src/favicon.ico",
  85. "src/assets"
  86. ]
  87. }
  88. },
  89. "lint": {
  90. "builder": "@angular-devkit/build-angular:tslint",
  91. "options": {
  92. "tsConfig": [
  93. "src/tsconfig.app.json",
  94. "src/tsconfig.spec.json"
  95. ],
  96. "exclude": [
  97. "**/node_modules/**"
  98. ]
  99. }
  100. }
  101. }
  102. },
  103. "quizz-e2e": {
  104. "root": "e2e/",
  105. "projectType": "application",
  106. "architect": {
  107. "e2e": {
  108. "builder": "@angular-devkit/build-angular:protractor",
  109. "options": {
  110. "protractorConfig": "e2e/protractor.conf.js",
  111. "devServerTarget": "quizz:serve"
  112. },
  113. "configurations": {
  114. "production": {
  115. "devServerTarget": "quizz:serve:production"
  116. }
  117. }
  118. },
  119. "lint": {
  120. "builder": "@angular-devkit/build-angular:tslint",
  121. "options": {
  122. "tsConfig": "e2e/tsconfig.e2e.json",
  123. "exclude": [
  124. "**/node_modules/**"
  125. ]
  126. }
  127. }
  128. }
  129. }
  130. },
  131. "defaultProject": "quizz"
  132. }