angular.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/build:application",
  19. "options": {
  20. "browser": "src/main.ts",
  21. "allowedCommonJsDependencies": [
  22. "@tensorflow/tfjs-tflite",
  23. "@tensorflow/tfjs"
  24. ],
  25. "polyfills": [
  26. "zone.js"
  27. ],
  28. "tsConfig": "tsconfig.app.json",
  29. "inlineStyleLanguage": "scss",
  30. "assets": [
  31. {
  32. "glob": "**/*",
  33. "input": "public"
  34. },
  35. {
  36. "glob": "**/*",
  37. "input": "src/assets",
  38. "output": "/assets/"
  39. }
  40. ],
  41. "styles": [
  42. "src/styles.scss"
  43. ]
  44. },
  45. "configurations": {
  46. "production": {
  47. "budgets": [
  48. {
  49. "type": "initial",
  50. "maximumWarning": "2MB",
  51. "maximumError": "4MB"
  52. },
  53. {
  54. "type": "anyComponentStyle",
  55. "maximumWarning": "4kB",
  56. "maximumError": "8kB"
  57. }
  58. ],
  59. "outputHashing": "all"
  60. },
  61. "development": {
  62. "optimization": false,
  63. "extractLicenses": false,
  64. "sourceMap": true
  65. }
  66. },
  67. "defaultConfiguration": "production"
  68. },
  69. "serve": {
  70. "builder": "@angular/build:dev-server",
  71. "configurations": {
  72. "production": {
  73. "buildTarget": "frontend:build:production"
  74. },
  75. "development": {
  76. "buildTarget": "frontend:build:development"
  77. }
  78. },
  79. "defaultConfiguration": "development"
  80. },
  81. "extract-i18n": {
  82. "builder": "@angular/build:extract-i18n"
  83. },
  84. "test": {
  85. "builder": "@angular/build:karma",
  86. "options": {
  87. "polyfills": [
  88. "zone.js",
  89. "zone.js/testing"
  90. ],
  91. "tsConfig": "tsconfig.spec.json",
  92. "inlineStyleLanguage": "scss",
  93. "assets": [
  94. {
  95. "glob": "**/*",
  96. "input": "public"
  97. },
  98. {
  99. "glob": "**/*",
  100. "input": "src/assets",
  101. "output": "/assets/"
  102. }
  103. ],
  104. "styles": [
  105. "src/styles.scss"
  106. ]
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }