angular.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "yss-project": {
  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. "polyfills": [
  22. "zone.js"
  23. ],
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "externalDependencies": [
  27. "echarts"
  28. ],
  29. "assets": [
  30. {
  31. "glob": "**/*",
  32. "input": "public"
  33. }
  34. ],
  35. "styles": [
  36. "src/styles.scss"
  37. ]
  38. },
  39. "configurations": {
  40. "production": {
  41. "budgets": [
  42. {
  43. "type": "initial",
  44. "maximumWarning": "2MB",
  45. "maximumError": "5MB"
  46. },
  47. {
  48. "type": "anyComponentStyle",
  49. "maximumWarning": "50kB",
  50. "maximumError": "100kB"
  51. }
  52. ],
  53. "outputHashing": "all",
  54. "optimization": {
  55. "fonts": {
  56. "inline": false
  57. }
  58. }
  59. },
  60. "development": {
  61. "optimization": false,
  62. "extractLicenses": false,
  63. "sourceMap": true
  64. }
  65. },
  66. "defaultConfiguration": "production"
  67. },
  68. "serve": {
  69. "builder": "@angular/build:dev-server",
  70. "configurations": {
  71. "production": {
  72. "buildTarget": "yss-project:build:production"
  73. },
  74. "development": {
  75. "buildTarget": "yss-project:build:development"
  76. }
  77. },
  78. "defaultConfiguration": "development"
  79. },
  80. "extract-i18n": {
  81. "builder": "@angular/build:extract-i18n"
  82. },
  83. "test": {
  84. "builder": "@angular/build:karma",
  85. "options": {
  86. "polyfills": [
  87. "zone.js",
  88. "zone.js/testing"
  89. ],
  90. "tsConfig": "tsconfig.spec.json",
  91. "inlineStyleLanguage": "scss",
  92. "assets": [
  93. {
  94. "glob": "**/*",
  95. "input": "public"
  96. }
  97. ],
  98. "styles": [
  99. "src/styles.scss"
  100. ]
  101. }
  102. },
  103. "lint": {
  104. "builder": "@angular-eslint/builder:lint",
  105. "options": {
  106. "lintFilePatterns": [
  107. "src/**/*.ts",
  108. "src/**/*.html"
  109. ]
  110. }
  111. }
  112. }
  113. }
  114. },
  115. "cli": {
  116. "schematicCollections": [
  117. "angular-eslint"
  118. ]
  119. }
  120. }