angular.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "cli": {
  4. "analytics": false
  5. },
  6. "version": 1,
  7. "newProjectRoot": "projects",
  8. "projects": {
  9. "SensLog": {
  10. "projectType": "application",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss"
  14. }
  15. },
  16. "root": "",
  17. "sourceRoot": "src",
  18. "prefix": "app",
  19. "architect": {
  20. "build": {
  21. "builder": "@angular-devkit/build-angular:browser",
  22. "options": {
  23. "allowedCommonJsDependencies": [
  24. "moment-timezone"
  25. ],
  26. "outputPath": "dist/SensLog",
  27. "index": "src/index.html",
  28. "main": "src/main.ts",
  29. "polyfills": "src/polyfills.ts",
  30. "tsConfig": "tsconfig.app.json",
  31. "preserveSymlinks": true,
  32. "aot": true,
  33. "assets": [
  34. "src/favicon.ico",
  35. "src/assets",
  36. {
  37. "glob": "**/*",
  38. "input": "./node_modules/hslayers-ng/src/assets",
  39. "output": "./hslayers-ng/assets"
  40. }
  41. ],
  42. "styles": [
  43. "node_modules/primeng/resources/themes/bootstrap4-dark-blue/theme.css",
  44. "node_modules/primeng/resources/primeng.min.css",
  45. "node_modules/primeicons/primeicons.css",
  46. "src/assets/scss/styles.scss",
  47. "node_modules/hslayers-ng/css/hslayers-ng-wo-bootstrap.css"
  48. ],
  49. "scripts": [
  50. "node_modules/jquery/dist/jquery.js",
  51. "node_modules/bootstrap/dist/js/bootstrap.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. "namedChunks": false,
  66. "extractLicenses": true,
  67. "vendorChunk": false,
  68. "buildOptimizer": true,
  69. "budgets": [
  70. {
  71. "type": "initial",
  72. "maximumWarning": "2mb",
  73. "maximumError": "5mb"
  74. },
  75. {
  76. "type": "anyComponentStyle",
  77. "maximumWarning": "6kb",
  78. "maximumError": "10kb"
  79. }
  80. ]
  81. }
  82. }
  83. },
  84. "serve": {
  85. "builder": "@angular-devkit/build-angular:dev-server",
  86. "options": {
  87. "browserTarget": "SensLog:build",
  88. "proxyConfig": "proxy-config.json"
  89. },
  90. "configurations": {
  91. "production": {
  92. "browserTarget": "SensLog:build:production"
  93. }
  94. }
  95. },
  96. "extract-i18n": {
  97. "builder": "@angular-devkit/build-angular:extract-i18n",
  98. "options": {
  99. "browserTarget": "SensLog:build"
  100. }
  101. },
  102. "test": {
  103. "builder": "@angular-devkit/build-angular:karma",
  104. "options": {
  105. "main": "src/test.ts",
  106. "polyfills": "src/polyfills.ts",
  107. "tsConfig": "tsconfig.spec.json",
  108. "karmaConfig": "karma.conf.js",
  109. "assets": [
  110. "src/favicon.ico",
  111. "src/assets"
  112. ],
  113. "styles": [
  114. "src/styles.scss"
  115. ],
  116. "scripts": []
  117. }
  118. },
  119. "lint": {
  120. "builder": "@angular-devkit/build-angular:tslint",
  121. "options": {
  122. "tsConfig": [
  123. "tsconfig.app.json",
  124. "tsconfig.spec.json",
  125. "e2e/tsconfig.json"
  126. ],
  127. "exclude": [
  128. "**/node_modules/**"
  129. ]
  130. }
  131. },
  132. "e2e": {
  133. "builder": "@angular-devkit/build-angular:protractor",
  134. "options": {
  135. "protractorConfig": "e2e/protractor.conf.js",
  136. "devServerTarget": "SensLog:serve"
  137. },
  138. "configurations": {
  139. "production": {
  140. "devServerTarget": "SensLog:serve:production"
  141. }
  142. }
  143. }
  144. }
  145. }
  146. },
  147. "defaultProject": "SensLog"
  148. }