angular.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "oms": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:class": {
  10. "skipTests": true
  11. },
  12. "@schematics/angular:component": {
  13. "skipTests": true
  14. },
  15. "@schematics/angular:directive": {
  16. "skipTests": true
  17. },
  18. "@schematics/angular:guard": {
  19. "skipTests": true
  20. },
  21. "@schematics/angular:interceptor": {
  22. "skipTests": true
  23. },
  24. "@schematics/angular:pipe": {
  25. "skipTests": true
  26. },
  27. "@schematics/angular:resolver": {
  28. "skipTests": true
  29. },
  30. "@schematics/angular:service": {
  31. "skipTests": true
  32. }
  33. },
  34. "root": "",
  35. "sourceRoot": "src",
  36. "prefix": "app",
  37. "architect": {
  38. "build": {
  39. "builder": "@angular/build:application",
  40. "options": {
  41. "outputPath": {
  42. "base": "../oms/public/app",
  43. "browser": ""
  44. },
  45. "browser": "src/main.ts",
  46. "polyfills": ["zone.js"],
  47. "tsConfig": "tsconfig.app.json",
  48. "baseHref": "/app/",
  49. "assets": [
  50. {
  51. "glob": "**/*",
  52. "input": "public"
  53. },
  54. {
  55. "glob": "**/*",
  56. "input": "node_modules/@ant-design/icons-angular/src/inline-svg/",
  57. "output": "/assets/"
  58. }
  59. ],
  60. "styles": [
  61. "./node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
  62. "src/styles.css"
  63. ]
  64. },
  65. "configurations": {
  66. "production": {
  67. "budgets": [
  68. {
  69. "type": "initial",
  70. "maximumWarning": "2MB",
  71. "maximumError": "4MB"
  72. },
  73. {
  74. "type": "anyComponentStyle",
  75. "maximumWarning": "4kB",
  76. "maximumError": "8kB"
  77. }
  78. ],
  79. "outputHashing": "all"
  80. },
  81. "development": {
  82. "optimization": false,
  83. "extractLicenses": false,
  84. "sourceMap": true
  85. }
  86. },
  87. "defaultConfiguration": "production"
  88. },
  89. "serve": {
  90. "builder": "@angular/build:dev-server",
  91. "configurations": {
  92. "production": {
  93. "buildTarget": "oms:build:production"
  94. },
  95. "development": {
  96. "buildTarget": "oms:build:development"
  97. }
  98. },
  99. "defaultConfiguration": "development"
  100. },
  101. "extract-i18n": {
  102. "builder": "@angular/build:extract-i18n"
  103. },
  104. "test": {
  105. "builder": "@angular/build:karma",
  106. "options": {
  107. "polyfills": ["zone.js", "zone.js/testing"],
  108. "tsConfig": "tsconfig.spec.json",
  109. "assets": [
  110. {
  111. "glob": "**/*",
  112. "input": "public"
  113. }
  114. ],
  115. "styles": [
  116. "./node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
  117. "src/styles.css"
  118. ]
  119. }
  120. }
  121. }
  122. }
  123. },
  124. "cli": {
  125. "analytics": false
  126. }
  127. }