angular.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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/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. "./node_modules/swiper/swiper-bundle.min.css"
  39. ],
  40. "scripts": [
  41. "node_modules/echarts/dist/echarts.min.js",
  42. "./node_modules/swiper/swiper-bundle.min.js"
  43. ]
  44. },
  45. "configurations": {
  46. "production": {
  47. "fileReplacements": [
  48. {
  49. "replace": "src/environments/environment.ts",
  50. "with": "src/environments/environment.prod.ts"
  51. }
  52. ],
  53. "optimization": true,
  54. "outputHashing": "all",
  55. "sourceMap": false,
  56. "extractCss": true,
  57. "namedChunks": false,
  58. "aot": true,
  59. "extractLicenses": true,
  60. "vendorChunk": false,
  61. "buildOptimizer": false,
  62. "budgets": [
  63. {
  64. "type": "initial",
  65. "maximumWarning": "30mb",
  66. "maximumError": "30mb"
  67. }
  68. ]
  69. },
  70. "es5":{
  71. "tsConfig": "./tsconfig.app.es5.json"
  72. }
  73. }
  74. },
  75. "serve": {
  76. "builder": "@angular-devkit/build-angular:dev-server",
  77. "options": {
  78. "browserTarget": "itsm-zy:build"
  79. },
  80. "configurations": {
  81. "production": {
  82. "browserTarget": "itsm-zy:build:production"
  83. },
  84. "es5":{
  85. "browserTarget": "itsm-zy:build:es5"
  86. }
  87. }
  88. },
  89. "extract-i18n": {
  90. "builder": "@angular-devkit/build-angular:extract-i18n",
  91. "options": {
  92. "browserTarget": "itsm-zy:build"
  93. }
  94. },
  95. "test": {
  96. "builder": "@angular-devkit/build-angular:karma",
  97. "options": {
  98. "main": "src/test.ts",
  99. "polyfills": "src/polyfills.ts",
  100. "tsConfig": "tsconfig.spec.json",
  101. "karmaConfig": "karma.conf.js",
  102. "assets": [
  103. "src/favicon.ico",
  104. "src/assets"
  105. ],
  106. "styles": [
  107. "src/styles.less",
  108. "src/assets/iconfont/iconfont.css",
  109. "./node_modules/swiper/swiper-bundle.min.css"
  110. ],
  111. "scripts": [
  112. "node_modules/echarts/dist/echarts.min.js",
  113. "./node_modules/swiper/swiper-bundle.min.js"
  114. ]
  115. }
  116. },
  117. "lint": {
  118. "builder": "@angular-devkit/build-angular:tslint",
  119. "options": {
  120. "tsConfig": [
  121. "tsconfig.app.json",
  122. "tsconfig.spec.json",
  123. "e2e/tsconfig.json"
  124. ],
  125. "exclude": [
  126. "**/node_modules/**"
  127. ]
  128. }
  129. },
  130. "e2e": {
  131. "builder": "@angular-devkit/build-angular:protractor",
  132. "options": {
  133. "protractorConfig": "e2e/protractor.conf.js",
  134. "devServerTarget": "itsm-zy:serve"
  135. },
  136. "configurations": {
  137. "production": {
  138. "devServerTarget": "itsm-zy:serve:production"
  139. }
  140. }
  141. }
  142. }
  143. }
  144. },
  145. "defaultProject": "itsm-zy"
  146. }