angular.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "client": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "inlineTemplate": true,
  11. "inlineStyle": true,
  12. "skipTests": true
  13. },
  14. "@schematics/angular:class": {
  15. "skipTests": true
  16. },
  17. "@schematics/angular:directive": {
  18. "skipTests": true
  19. },
  20. "@schematics/angular:guard": {
  21. "skipTests": true
  22. },
  23. "@schematics/angular:interceptor": {
  24. "skipTests": true
  25. },
  26. "@schematics/angular:pipe": {
  27. "skipTests": true
  28. },
  29. "@schematics/angular:service": {
  30. "skipTests": true
  31. },
  32. "@schematics/angular:application": {
  33. "strict": true
  34. }
  35. },
  36. "root": "",
  37. "sourceRoot": "src",
  38. "prefix": "app",
  39. "architect": {
  40. "build": {
  41. "builder": "@angular-devkit/build-angular:browser",
  42. "options": {
  43. "outputPath": "../wwwroot/client",
  44. "index": "src/index.html",
  45. "main": "src/main.ts",
  46. "polyfills": "src/polyfills.ts",
  47. "tsConfig": "tsconfig.app.json",
  48. "assets": [
  49. "src/favicon.ico",
  50. "src/assets"
  51. ],
  52. "styles": [
  53. "src/styles.css"
  54. ],
  55. "scripts": []
  56. },
  57. "configurations": {
  58. "production": {
  59. "budgets": [
  60. {
  61. "type": "initial",
  62. "maximumWarning": "500kb",
  63. "maximumError": "1mb"
  64. },
  65. {
  66. "type": "anyComponentStyle",
  67. "maximumWarning": "2kb",
  68. "maximumError": "4kb"
  69. }
  70. ],
  71. "fileReplacements": [
  72. {
  73. "replace": "src/environments/environment.ts",
  74. "with": "src/environments/environment.prod.ts"
  75. }
  76. ],
  77. "outputHashing": "all"
  78. },
  79. "development": {
  80. "buildOptimizer": false,
  81. "optimization": false,
  82. "vendorChunk": true,
  83. "extractLicenses": false,
  84. "sourceMap": true,
  85. "namedChunks": true
  86. }
  87. },
  88. "defaultConfiguration": "production"
  89. },
  90. "serve": {
  91. "builder": "@angular-devkit/build-angular:dev-server",
  92. "configurations": {
  93. "production": {
  94. "browserTarget": "client:build:production"
  95. },
  96. "development": {
  97. "browserTarget": "client:build:development"
  98. }
  99. },
  100. "defaultConfiguration": "development"
  101. },
  102. "extract-i18n": {
  103. "builder": "@angular-devkit/build-angular:extract-i18n",
  104. "options": {
  105. "browserTarget": "client:build"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "defaultProject": "client"
  112. }