angular.json 5.3 KB

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