angular.json 4.0 KB

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