angular.json 3.0 KB

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