You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

angular.json 4.3KB

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