angular.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "hm2soft": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "prefix": "app",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "styleext": "scss"
  14. }
  15. },
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-devkit/build-angular:browser",
  19. "options": {
  20. "outputPath": "dist",
  21. "index": "src/index.html",
  22. "main": "src/main.ts",
  23. "polyfills": "src/polyfills.ts",
  24. "tsConfig": "src/tsconfig.app.json",
  25. "assets": [
  26. "src/favicon.ico",
  27. "src/assets"
  28. ],
  29. "styles": [
  30. "src/app/core/preloader/preloader.scss",
  31. "src/styles.scss"
  32. ],
  33. "scripts": [
  34. "node_modules/jquery/dist/jquery.js",
  35. "src/app/core/preloader/preloader.js",
  36. "node_modules/popper.js/dist/umd/popper.js",
  37. "node_modules/chart.js/dist/Chart.bundle.js",
  38. "node_modules/bootstrap/js/dist/util.js",
  39. "node_modules/bootstrap/js/dist/modal.js",
  40. "node_modules/bootstrap/js/dist/dropdown.js",
  41. "node_modules/bootstrap/js/dist/tooltip.js",
  42. "node_modules/summernote/dist/summernote.js",
  43. "node_modules/moment/min/moment-with-locales.min.js",
  44. "node_modules/echarts/dist/echarts.js"
  45. ]
  46. },
  47. "configurations": {
  48. "production": {
  49. "fileReplacements": [
  50. {
  51. "replace": "src/environments/environment.ts",
  52. "with": "src/environments/environment.prod.ts"
  53. }
  54. ],
  55. "optimization": true,
  56. "outputHashing": "all",
  57. "sourceMap": false,
  58. "extractCss": true,
  59. "namedChunks": false,
  60. "aot": true,
  61. "extractLicenses": true,
  62. "vendorChunk": false,
  63. "buildOptimizer": true,
  64. "budgets": [
  65. {
  66. "type": "initial",
  67. "maximumWarning": "5mb",
  68. "maximumError": "10mb"
  69. }
  70. ]
  71. }
  72. }
  73. },
  74. "serve": {
  75. "builder": "@angular-devkit/build-angular:dev-server",
  76. "options": {
  77. "browserTarget": "hm2soft:build"
  78. },
  79. "configurations": {
  80. "production": {
  81. "browserTarget": "hm2soft:build:production"
  82. }
  83. }
  84. },
  85. "extract-i18n": {
  86. "builder": "@angular-devkit/build-angular:extract-i18n",
  87. "options": {
  88. "browserTarget": "hm2soft:build"
  89. }
  90. },
  91. "test": {
  92. "builder": "@angular-devkit/build-angular:karma",
  93. "options": {
  94. "main": "src/test.ts",
  95. "polyfills": "src/polyfills.ts",
  96. "tsConfig": "src/tsconfig.spec.json",
  97. "karmaConfig": "src/karma.conf.js",
  98. "styles": [
  99. "src/app/core/preloader/preloader.scss",
  100. "src/styles.scss"
  101. ],
  102. "scripts": [
  103. "node_modules/jquery/dist/jquery.js",
  104. "src/app/core/preloader/preloader.js",
  105. "node_modules/popper.js/dist/umd/popper.js",
  106. "node_modules/chart.js/dist/Chart.bundle.js",
  107. "node_modules/jqcloud2/dist/jqcloud.js",
  108. "node_modules/bootstrap/js/dist/util.js",
  109. "node_modules/bootstrap/js/dist/modal.js",
  110. "node_modules/bootstrap/js/dist/dropdown.js",
  111. "node_modules/bootstrap/js/dist/tooltip.js",
  112. "node_modules/summernote/dist/summernote.js",
  113. "node_modules/moment/min/moment-with-locales.min.js"
  114. ],
  115. "assets": [
  116. "src/favicon.ico",
  117. "src/assets"
  118. ]
  119. }
  120. },
  121. "lint": {
  122. "builder": "@angular-devkit/build-angular:tslint",
  123. "options": {
  124. "tsConfig": [
  125. "src/tsconfig.app.json",
  126. "src/tsconfig.spec.json"
  127. ],
  128. "exclude": [
  129. "**/node_modules/**"
  130. ]
  131. }
  132. }
  133. }
  134. },
  135. "hm2soft-e2e": {
  136. "root": "e2e/",
  137. "projectType": "application",
  138. "prefix": "",
  139. "architect": {
  140. "e2e": {
  141. "builder": "@angular-devkit/build-angular:protractor",
  142. "options": {
  143. "protractorConfig": "e2e/protractor.conf.js",
  144. "devServerTarget": "hm2soft:serve"
  145. },
  146. "configurations": {
  147. "production": {
  148. "devServerTarget": "hm2soft:serve:production"
  149. }
  150. }
  151. },
  152. "lint": {
  153. "builder": "@angular-devkit/build-angular:tslint",
  154. "options": {
  155. "tsConfig": "e2e/tsconfig.e2e.json",
  156. "exclude": [
  157. "**/node_modules/**"
  158. ]
  159. }
  160. }
  161. }
  162. }
  163. },
  164. "defaultProject": "hm2soft"
  165. }