angular.json 2.7 KB

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