angular.json 3.7KB

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