You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

angular.json 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "defaultProject": "app",
  5. "newProjectRoot": "projects",
  6. "projects": {
  7. "app": {
  8. "root": "",
  9. "sourceRoot": "src",
  10. "projectType": "application",
  11. "prefix": "app",
  12. "schematics": {},
  13. "architect": {
  14. "build": {
  15. "builder": "@angular-devkit/build-angular:browser",
  16. "options": {
  17. "outputPath": "www",
  18. "index": "src/index.html",
  19. "main": "src/main.ts",
  20. "polyfills": "src/polyfills.ts",
  21. "tsConfig": "tsconfig.app.json",
  22. "assets": [
  23. {
  24. "glob": "**/*",
  25. "input": "src/assets",
  26. "output": "assets"
  27. },
  28. {
  29. "glob": "**/*.svg",
  30. "input": "node_modules/ionicons/dist/ionicons/svg",
  31. "output": "./svg"
  32. }
  33. ],
  34. "styles": ["src/theme/variables.scss", "src/global.scss"],
  35. "scripts": []
  36. },
  37. "configurations": {
  38. "production": {
  39. "fileReplacements": [
  40. {
  41. "replace": "src/environments/environment.ts",
  42. "with": "src/environments/environment.prod.ts"
  43. }
  44. ],
  45. "optimization": true,
  46. "outputHashing": "all",
  47. "sourceMap": false,
  48. "namedChunks": false,
  49. "aot": true,
  50. "extractLicenses": true,
  51. "vendorChunk": false,
  52. "buildOptimizer": true,
  53. "budgets": [
  54. {
  55. "type": "initial",
  56. "maximumWarning": "2mb",
  57. "maximumError": "5mb"
  58. }
  59. ]
  60. },
  61. "ci": {
  62. "progress": false
  63. }
  64. }
  65. },
  66. "serve": {
  67. "builder": "@angular-devkit/build-angular:dev-server",
  68. "options": {
  69. "browserTarget": "app:build"
  70. },
  71. "configurations": {
  72. "production": {
  73. "browserTarget": "app:build:production"
  74. },
  75. "ci": {
  76. "progress": false
  77. }
  78. }
  79. },
  80. "extract-i18n": {
  81. "builder": "@angular-devkit/build-angular:extract-i18n",
  82. "options": {
  83. "browserTarget": "app:build"
  84. }
  85. },
  86. "test": {
  87. "builder": "@angular-devkit/build-angular:karma",
  88. "options": {
  89. "main": "src/test.ts",
  90. "polyfills": "src/polyfills.ts",
  91. "tsConfig": "tsconfig.spec.json",
  92. "karmaConfig": "karma.conf.js",
  93. "styles": [],
  94. "scripts": [],
  95. "assets": [
  96. {
  97. "glob": "favicon.ico",
  98. "input": "src/",
  99. "output": "/"
  100. },
  101. {
  102. "glob": "**/*",
  103. "input": "src/assets",
  104. "output": "/assets"
  105. }
  106. ]
  107. },
  108. "configurations": {
  109. "ci": {
  110. "progress": false,
  111. "watch": false
  112. }
  113. }
  114. },
  115. "lint": {
  116. "builder": "@angular-devkit/build-angular:tslint",
  117. "options": {
  118. "tsConfig": [
  119. "tsconfig.app.json",
  120. "tsconfig.spec.json",
  121. "e2e/tsconfig.json"
  122. ],
  123. "exclude": ["**/node_modules/**"]
  124. }
  125. },
  126. "e2e": {
  127. "builder": "@angular-devkit/build-angular:protractor",
  128. "options": {
  129. "protractorConfig": "e2e/protractor.conf.js",
  130. "devServerTarget": "app:serve"
  131. },
  132. "configurations": {
  133. "production": {
  134. "devServerTarget": "app:serve:production"
  135. },
  136. "ci": {
  137. "devServerTarget": "app:serve:ci"
  138. }
  139. }
  140. },
  141. "ionic-cordova-build": {
  142. "builder": "@ionic/angular-toolkit:cordova-build",
  143. "options": {
  144. "browserTarget": "app:build"
  145. },
  146. "configurations": {
  147. "production": {
  148. "browserTarget": "app:build:production"
  149. }
  150. }
  151. },
  152. "ionic-cordova-serve": {
  153. "builder": "@ionic/angular-toolkit:cordova-serve",
  154. "options": {
  155. "cordovaBuildTarget": "app:ionic-cordova-build",
  156. "devServerTarget": "app:serve"
  157. },
  158. "configurations": {
  159. "production": {
  160. "cordovaBuildTarget": "app:ionic-cordova-build:production",
  161. "devServerTarget": "app:serve:production"
  162. }
  163. }
  164. }
  165. }
  166. }
  167. },
  168. "cli": {
  169. "defaultCollection": "@ionic/angular-toolkit"
  170. },
  171. "schematics": {
  172. "@ionic/angular-toolkit:component": {
  173. "styleext": "scss"
  174. },
  175. "@ionic/angular-toolkit:page": {
  176. "styleext": "scss"
  177. }
  178. }
  179. }