angular.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. "glob": "{*.js,*.wasm}",
  42. "input": "src/assets/tflite-wasm",
  43. "output": "/"
  44. }
  45. ],
  46. "styles": [
  47. "src/styles.scss"
  48. ],
  49. "scripts": [
  50. "node_modules/@tensorflow/tfjs/dist/tf.min.js",
  51. "node_modules/@tensorflow/tfjs-tflite/dist/tf-tflite.min.js"
  52. ]
  53. },
  54. "configurations": {
  55. "production": {
  56. "budgets": [
  57. {
  58. "type": "initial",
  59. "maximumWarning": "2MB",
  60. "maximumError": "4MB"
  61. },
  62. {
  63. "type": "anyComponentStyle",
  64. "maximumWarning": "4kB",
  65. "maximumError": "8kB"
  66. }
  67. ],
  68. "outputHashing": "all"
  69. },
  70. "development": {
  71. "optimization": false,
  72. "extractLicenses": false,
  73. "sourceMap": true
  74. }
  75. },
  76. "defaultConfiguration": "production"
  77. },
  78. "serve": {
  79. "builder": "@angular/build:dev-server",
  80. "configurations": {
  81. "production": {
  82. "buildTarget": "frontend:build:production"
  83. },
  84. "development": {
  85. "buildTarget": "frontend:build:development"
  86. }
  87. },
  88. "defaultConfiguration": "development"
  89. },
  90. "extract-i18n": {
  91. "builder": "@angular/build:extract-i18n"
  92. },
  93. "test": {
  94. "builder": "@angular/build:karma",
  95. "options": {
  96. "polyfills": [
  97. "zone.js",
  98. "zone.js/testing"
  99. ],
  100. "tsConfig": "tsconfig.spec.json",
  101. "inlineStyleLanguage": "scss",
  102. "assets": [
  103. {
  104. "glob": "**/*",
  105. "input": "public"
  106. },
  107. {
  108. "glob": "**/*",
  109. "input": "src/assets",
  110. "output": "/assets/"
  111. }
  112. ],
  113. "styles": [
  114. "src/styles.scss"
  115. ],
  116. "scripts": []
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }