angular.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "tutorial-angular": {
  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:browser",
  19. "options": {
  20. "outputPath": "dist/tutorial-angular",
  21. "index": "src/index.html",
  22. "main": "src/main.ts",
  23. "polyfills": "src/polyfills.ts",
  24. "tsConfig": "tsconfig.app.json",
  25. "aot": false,
  26. "assets": [
  27. "src/favicon.ico",
  28. "src/assets"
  29. ],
  30. "styles": [
  31. "src/styles.scss"
  32. ],
  33. "scripts": []
  34. },
  35. "configurations": {
  36. "production": {
  37. "fileReplacements": [
  38. {
  39. "replace": "src/environments/environment.ts",
  40. "with": "src/environments/environment.prod.ts"
  41. }
  42. ],
  43. "optimization": true,
  44. "outputHashing": "all",
  45. "sourceMap": false,
  46. "extractCss": true,
  47. "namedChunks": false,
  48. "aot": true,
  49. "extractLicenses": true,
  50. "vendorChunk": false,
  51. "buildOptimizer": true,
  52. "budgets": [
  53. {
  54. "type": "initial",
  55. "maximumWarning": "2mb",
  56. "maximumError": "5mb"
  57. }
  58. ]
  59. }
  60. }
  61. },
  62. "serve": {
  63. "builder": "@angular-devkit/build-angular:dev-server",
  64. "options": {
  65. "browserTarget": "tutorial-angular:build"
  66. },
  67. "configurations": {
  68. "production": {
  69. "browserTarget": "tutorial-angular:build:production"
  70. }
  71. }
  72. },
  73. "extract-i18n": {
  74. "builder": "@angular-devkit/build-angular:extract-i18n",
  75. "options": {
  76. "browserTarget": "tutorial-angular:build"
  77. }
  78. },
  79. "test": {
  80. "builder": "@angular-devkit/build-angular:karma",
  81. "options": {
  82. "main": "src/test.ts",
  83. "polyfills": "src/polyfills.ts",
  84. "tsConfig": "tsconfig.spec.json",
  85. "karmaConfig": "karma.conf.js",
  86. "assets": [
  87. "src/favicon.ico",
  88. "src/assets"
  89. ],
  90. "styles": [
  91. "src/styles.scss"
  92. ],
  93. "scripts": []
  94. }
  95. },
  96. "lint": {
  97. "builder": "@angular-devkit/build-angular:tslint",
  98. "options": {
  99. "tsConfig": [
  100. "tsconfig.app.json",
  101. "tsconfig.spec.json",
  102. "e2e/tsconfig.json"
  103. ],
  104. "exclude": [
  105. "**/node_modules/**"
  106. ]
  107. }
  108. },
  109. "e2e": {
  110. "builder": "@angular-devkit/build-angular:protractor",
  111. "options": {
  112. "protractorConfig": "e2e/protractor.conf.js",
  113. "devServerTarget": "tutorial-angular:serve"
  114. },
  115. "configurations": {
  116. "production": {
  117. "devServerTarget": "tutorial-angular:serve:production"
  118. }
  119. }
  120. }
  121. }
  122. }},
  123. "defaultProject": "tutorial-angular"
  124. }