angular.json 3.9 KB

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