angular.json 5.3 KB

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