angular.json 4.0 KB

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