angular.json 4.5 KB

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