angular.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "cli": {
  5. "packageManager": "pnpm"
  6. },
  7. "newProjectRoot": "projects",
  8. "projects": {
  9. "test-angular": {
  10. "projectType": "application",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "inlineTemplate": true,
  14. "inlineStyle": true,
  15. "skipTests": true
  16. },
  17. "@schematics/angular:class": {
  18. "skipTests": true
  19. },
  20. "@schematics/angular:directive": {
  21. "skipTests": true
  22. },
  23. "@schematics/angular:guard": {
  24. "skipTests": true
  25. },
  26. "@schematics/angular:interceptor": {
  27. "skipTests": true
  28. },
  29. "@schematics/angular:pipe": {
  30. "skipTests": true
  31. },
  32. "@schematics/angular:resolver": {
  33. "skipTests": true
  34. },
  35. "@schematics/angular:service": {
  36. "skipTests": true
  37. }
  38. },
  39. "root": "",
  40. "sourceRoot": "src",
  41. "prefix": "app",
  42. "architect": {
  43. "build": {
  44. "builder": "@angular-devkit/build-angular:application",
  45. "options": {
  46. "outputPath": "dist/test-angular",
  47. "index": "src/index.html",
  48. "browser": "src/main.ts",
  49. "polyfills": [
  50. "zone.js"
  51. ],
  52. "tsConfig": "tsconfig.app.json",
  53. "assets": [
  54. "src/favicon.ico",
  55. "src/assets"
  56. ],
  57. "styles": [
  58. "src/styles.css"
  59. ],
  60. "scripts": []
  61. },
  62. "configurations": {
  63. "production": {
  64. "budgets": [
  65. {
  66. "type": "initial",
  67. "maximumWarning": "500kb",
  68. "maximumError": "1mb"
  69. },
  70. {
  71. "type": "anyComponentStyle",
  72. "maximumWarning": "2kb",
  73. "maximumError": "4kb"
  74. }
  75. ],
  76. "outputHashing": "all"
  77. },
  78. "development": {
  79. "optimization": false,
  80. "extractLicenses": false,
  81. "sourceMap": true
  82. }
  83. },
  84. "defaultConfiguration": "production"
  85. },
  86. "serve": {
  87. "builder": "@angular-devkit/build-angular:dev-server",
  88. "configurations": {
  89. "production": {
  90. "buildTarget": "test-angular:build:production"
  91. },
  92. "development": {
  93. "buildTarget": "test-angular:build:development"
  94. }
  95. },
  96. "defaultConfiguration": "development"
  97. },
  98. "extract-i18n": {
  99. "builder": "@angular-devkit/build-angular:extract-i18n",
  100. "options": {
  101. "buildTarget": "test-angular:build"
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }