angular.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "SensLog": {
  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. "moment-timezone"
  22. ],
  23. "outputPath": "dist/SensLog",
  24. "index": "src/index.html",
  25. "main": "src/main.ts",
  26. "polyfills": "src/polyfills.ts",
  27. "tsConfig": "tsconfig.app.json",
  28. "aot": true,
  29. "assets": [
  30. "src/favicon.ico",
  31. "src/assets",
  32. {
  33. "glob": "**/*",
  34. "input": "./node_modules/hslayers-ng/src/assets",
  35. "output": "./hslayers-ng/assets"
  36. }
  37. ],
  38. "styles": [
  39. "node_modules/primeng/resources/themes/bootstrap4-dark-blue/theme.css",
  40. "node_modules/primeng/resources/primeng.min.css",
  41. "node_modules/primeicons/primeicons.css",
  42. "src/assets/scss/styles.scss",
  43. "node_modules/hslayers-ng/css/hslayers-ng.css"
  44. ],
  45. "scripts": [
  46. "node_modules/jquery/dist/jquery.js",
  47. "node_modules/bootstrap/dist/js/bootstrap.js"
  48. ]
  49. },
  50. "configurations": {
  51. "production": {
  52. "fileReplacements": [
  53. {
  54. "replace": "src/environments/environment.ts",
  55. "with": "src/environments/environment.prod.ts"
  56. }
  57. ],
  58. "optimization": true,
  59. "outputHashing": "all",
  60. "sourceMap": false,
  61. "namedChunks": false,
  62. "extractLicenses": true,
  63. "vendorChunk": false,
  64. "buildOptimizer": true,
  65. "budgets": [
  66. {
  67. "type": "initial",
  68. "maximumWarning": "2mb",
  69. "maximumError": "5mb"
  70. },
  71. {
  72. "type": "anyComponentStyle",
  73. "maximumWarning": "6kb",
  74. "maximumError": "10kb"
  75. }
  76. ]
  77. }
  78. }
  79. },
  80. "serve": {
  81. "builder": "@angular-devkit/build-angular:dev-server",
  82. "defaultConfiguration": "development",
  83. "options": {
  84. "browserTarget": "SensLog:build",
  85. "proxyConfig": "proxy-config.json"
  86. },
  87. "configurations": {
  88. "development": {
  89. "optimization": false,
  90. "vendorChunk": true,
  91. "sourceMap": true
  92. },
  93. "production": {
  94. "browserTarget": "SensLog:build:production"
  95. }
  96. }
  97. },
  98. "extract-i18n": {
  99. "builder": "@angular-devkit/build-angular:extract-i18n",
  100. "options": {
  101. "browserTarget": "SensLog: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.scss"
  117. ],
  118. "scripts": []
  119. }
  120. },
  121. "lint": {
  122. "builder": "@angular-devkit/build-angular:tslint",
  123. "options": {
  124. "tsConfig": [
  125. "tsconfig.app.json",
  126. "tsconfig.spec.json",
  127. "e2e/tsconfig.json"
  128. ],
  129. "exclude": [
  130. "**/node_modules/**"
  131. ]
  132. }
  133. },
  134. "e2e": {
  135. "builder": "@angular-devkit/build-angular:protractor",
  136. "options": {
  137. "protractorConfig": "e2e/protractor.conf.js",
  138. "devServerTarget": "SensLog:serve"
  139. },
  140. "configurations": {
  141. "production": {
  142. "devServerTarget": "SensLog:serve:production"
  143. }
  144. }
  145. }
  146. }
  147. }
  148. },
  149. "defaultProject": "SensLog"
  150. }