angular.json 4.5 KB

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