angular.json 4.0 KB

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