angular.json 3.1 KB

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