angular.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "first-app": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "inlineTemplate": true,
  11. "inlineStyle": true,
  12. "style": "scss",
  13. "skipTests": true
  14. },
  15. "@schematics/angular:class": {
  16. "skipTests": true
  17. },
  18. "@schematics/angular:directive": {
  19. "skipTests": true
  20. },
  21. "@schematics/angular:guard": {
  22. "skipTests": true
  23. },
  24. "@schematics/angular:interceptor": {
  25. "skipTests": true
  26. },
  27. "@schematics/angular:pipe": {
  28. "skipTests": true
  29. },
  30. "@schematics/angular:resolver": {
  31. "skipTests": true
  32. },
  33. "@schematics/angular:service": {
  34. "skipTests": true
  35. }
  36. },
  37. "root": "",
  38. "sourceRoot": "src",
  39. "prefix": "app",
  40. "architect": {
  41. "build": {
  42. "builder": "@angular/build:application",
  43. "options": {
  44. "outputPath": "dist/first-app",
  45. "index": "src/index.html",
  46. "browser": "src/main.ts",
  47. "polyfills": ["zone.js"],
  48. "tsConfig": "tsconfig.app.json",
  49. "inlineStyleLanguage": "scss",
  50. "assets": ["src/favicon.ico", "src/assets"],
  51. "styles": ["src/styles.css"],
  52. "scripts": []
  53. },
  54. "configurations": {
  55. "production": {
  56. "budgets": [
  57. {
  58. "type": "initial",
  59. "maximumWarning": "500kb",
  60. "maximumError": "1mb"
  61. },
  62. {
  63. "type": "anyComponentStyle",
  64. "maximumWarning": "2kb",
  65. "maximumError": "4kb"
  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. "options": {
  81. "host": "0.0.0.0",
  82. "port": 4200
  83. },
  84. "configurations": {
  85. "production": {
  86. "buildTarget": "first-app:build:production"
  87. },
  88. "development": {
  89. "buildTarget": "first-app:build:development"
  90. }
  91. },
  92. "defaultConfiguration": "development"
  93. },
  94. "extract-i18n": {
  95. "builder": "@angular/build:extract-i18n",
  96. "options": {
  97. "buildTarget": "first-app:build"
  98. }
  99. }
  100. }
  101. }
  102. },
  103. "cli": {
  104. "analytics": "1a93ae9e-73ab-4b1c-8be7-5118962ac8db"
  105. }
  106. }