angular.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "angular-alarm-clock-configurator": {
  7. "projectType": "application",
  8. "schematics": {},
  9. "root": "",
  10. "sourceRoot": "src",
  11. "prefix": "app",
  12. "architect": {
  13. "build": {
  14. "builder": "@angular-devkit/build-angular:browser",
  15. "options": {
  16. "outputPath": "dist/angular-alarm-clock-configurator",
  17. "index": "src/index.html",
  18. "main": "src/main.ts",
  19. "polyfills": [
  20. "zone.js"
  21. ],
  22. "tsConfig": "tsconfig.app.json",
  23. "assets": [
  24. "src/favicon.ico",
  25. "src/assets",
  26. "src/manifest.webmanifest"
  27. ],
  28. "styles": [
  29. "src/styles.css",
  30. "@angular/material/prebuilt-themes/indigo-pink.css"
  31. ],
  32. "scripts": [],
  33. "serviceWorker": true,
  34. "ngswConfigPath": "ngsw-config.json"
  35. },
  36. "configurations": {
  37. "production": {
  38. "budgets": [
  39. {
  40. "type": "initial",
  41. "maximumWarning": "500kb",
  42. "maximumError": "1mb"
  43. },
  44. {
  45. "type": "anyComponentStyle",
  46. "maximumWarning": "2kb",
  47. "maximumError": "4kb"
  48. }
  49. ],
  50. "outputHashing": "all"
  51. },
  52. "development": {
  53. "buildOptimizer": false,
  54. "optimization": false,
  55. "vendorChunk": true,
  56. "extractLicenses": false,
  57. "sourceMap": true,
  58. "namedChunks": true,
  59. "fileReplacements": [
  60. {
  61. "replace": "src/environments/environment.ts",
  62. "with": "src/environments/environment.development.ts"
  63. }
  64. ]
  65. }
  66. },
  67. "defaultConfiguration": "production"
  68. },
  69. "serve": {
  70. "builder": "@angular-devkit/build-angular:dev-server",
  71. "configurations": {
  72. "production": {
  73. "browserTarget": "angular-alarm-clock-configurator:build:production"
  74. },
  75. "development": {
  76. "browserTarget": "angular-alarm-clock-configurator:build:development"
  77. }
  78. },
  79. "defaultConfiguration": "development"
  80. },
  81. "extract-i18n": {
  82. "builder": "@angular-devkit/build-angular:extract-i18n",
  83. "options": {
  84. "browserTarget": "angular-alarm-clock-configurator:build"
  85. }
  86. },
  87. "test": {
  88. "builder": "@angular-devkit/build-angular:karma",
  89. "options": {
  90. "polyfills": [
  91. "zone.js",
  92. "zone.js/testing"
  93. ],
  94. "tsConfig": "tsconfig.spec.json",
  95. "assets": [
  96. "src/favicon.ico",
  97. "src/assets",
  98. "src/manifest.webmanifest"
  99. ],
  100. "styles": [
  101. "@angular/material/prebuilt-themes/indigo-pink.css",
  102. "src/styles.css"
  103. ],
  104. "scripts": []
  105. }
  106. },
  107. "lint": {
  108. "builder": "@angular-eslint/builder:lint",
  109. "options": {
  110. "lintFilePatterns": [
  111. "src/**/*.ts",
  112. "src/**/*.html"
  113. ]
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "cli": {
  120. "schematicCollections": [
  121. "@angular-eslint/schematics"
  122. ]
  123. }
  124. }