angular.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "ng-template": {
  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-devkit/build-angular:application",
  19. "options": {
  20. "outputPath": "dist/ng-template",
  21. "index": "src/index.html",
  22. "browser": "src/main.ts",
  23. "polyfills": [
  24. "zone.js"
  25. ],
  26. "tsConfig": "tsconfig.app.json",
  27. "inlineStyleLanguage": "scss",
  28. "assets": [
  29. "src/favicon.ico",
  30. "src/assets"
  31. ],
  32. "styles": [
  33. "src/styles.scss"
  34. ],
  35. "scripts": []
  36. },
  37. "configurations": {
  38. "production": {
  39. "budgets": [
  40. {
  41. "type": "initial",
  42. "maximumWarning": "500kb",
  43. "maximumError": "1mb"
  44. },
  45. {
  46. "type": "anyComponentStyle",
  47. "maximumWarning": "2kb",
  48. "maximumError": "4kb"
  49. }
  50. ],
  51. "outputHashing": "all"
  52. },
  53. "development": {
  54. "optimization": false,
  55. "extractLicenses": false,
  56. "sourceMap": true
  57. }
  58. },
  59. "defaultConfiguration": "production"
  60. },
  61. "serve": {
  62. "builder": "@angular-devkit/build-angular:dev-server",
  63. "configurations": {
  64. "production": {
  65. "buildTarget": "ng-template:build:production"
  66. },
  67. "development": {
  68. "buildTarget": "ng-template:build:development"
  69. }
  70. },
  71. "defaultConfiguration": "development"
  72. },
  73. "extract-i18n": {
  74. "builder": "@angular-devkit/build-angular:extract-i18n",
  75. "options": {
  76. "buildTarget": "ng-template:build"
  77. }
  78. },
  79. "test": {
  80. "builder": "@angular-devkit/build-angular:karma",
  81. "options": {
  82. "polyfills": [
  83. "zone.js",
  84. "zone.js/testing"
  85. ],
  86. "tsConfig": "tsconfig.spec.json",
  87. "inlineStyleLanguage": "scss",
  88. "assets": [
  89. "src/favicon.ico",
  90. "src/assets"
  91. ],
  92. "styles": [
  93. "src/styles.scss"
  94. ],
  95. "scripts": []
  96. }
  97. }
  98. }
  99. }
  100. }
  101. }