angular.json 2.9 KB

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