angular.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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": [
  35. "src/theme/variables.scss",
  36. "src/global.scss"
  37. ],
  38. "scripts": [],
  39. "aot": false,
  40. "vendorChunk": true,
  41. "extractLicenses": false,
  42. "buildOptimizer": false,
  43. "sourceMap": {
  44. "scripts": true,
  45. "styles": false,
  46. "hidden": false,
  47. "vendor": true
  48. },
  49. "optimization": false,
  50. "namedChunks": true
  51. },
  52. "configurations": {
  53. "production": {
  54. "fileReplacements": [
  55. {
  56. "replace": "src/environments/environment.ts",
  57. "with": "src/environments/environment.prod.ts"
  58. }
  59. ],
  60. "optimization": true,
  61. "outputHashing": "all",
  62. "sourceMap": false,
  63. "namedChunks": false,
  64. "aot": true,
  65. "extractLicenses": true,
  66. "vendorChunk": false,
  67. "buildOptimizer": true,
  68. "budgets": [
  69. {
  70. "type": "initial",
  71. "maximumWarning": "2mb",
  72. "maximumError": "5mb"
  73. }
  74. ]
  75. },
  76. "ci": {
  77. "progress": false
  78. }
  79. }
  80. },
  81. "serve": {
  82. "builder": "@angular-devkit/build-angular:dev-server",
  83. "options": {
  84. "browserTarget": "app:build"
  85. },
  86. "configurations": {
  87. "production": {
  88. "browserTarget": "app:build:production"
  89. },
  90. "ci": {
  91. "progress": false
  92. }
  93. }
  94. },
  95. "extract-i18n": {
  96. "builder": "@angular-devkit/build-angular:extract-i18n",
  97. "options": {
  98. "browserTarget": "app:build"
  99. }
  100. },
  101. "test": {
  102. "builder": "@angular-devkit/build-angular:karma",
  103. "options": {
  104. "main": "src/test.ts",
  105. "polyfills": "src/polyfills.ts",
  106. "tsConfig": "tsconfig.spec.json",
  107. "karmaConfig": "karma.conf.js",
  108. "styles": [],
  109. "scripts": [],
  110. "assets": [
  111. {
  112. "glob": "favicon.ico",
  113. "input": "src/",
  114. "output": "/"
  115. },
  116. {
  117. "glob": "**/*",
  118. "input": "src/assets",
  119. "output": "/assets"
  120. }
  121. ]
  122. },
  123. "configurations": {
  124. "ci": {
  125. "progress": false,
  126. "watch": false
  127. }
  128. }
  129. },
  130. "lint": {
  131. "builder": "@angular-eslint/builder:lint",
  132. "options": {
  133. "lintFilePatterns": [
  134. "src/**/*.ts",
  135. "src/**/*.html"
  136. ]
  137. }
  138. },
  139. "e2e": {
  140. "builder": "@angular-devkit/build-angular:protractor",
  141. "options": {
  142. "protractorConfig": "e2e/protractor.conf.js",
  143. "devServerTarget": "app:serve"
  144. },
  145. "configurations": {
  146. "production": {
  147. "devServerTarget": "app:serve:production"
  148. },
  149. "ci": {
  150. "devServerTarget": "app:serve:ci"
  151. }
  152. }
  153. },
  154. "ionic-cordova-build": {
  155. "builder": "@ionic/angular-toolkit:cordova-build",
  156. "options": {
  157. "browserTarget": "app:build"
  158. },
  159. "configurations": {
  160. "production": {
  161. "browserTarget": "app:build:production"
  162. }
  163. }
  164. },
  165. "ionic-cordova-serve": {
  166. "builder": "@ionic/angular-toolkit:cordova-serve",
  167. "options": {
  168. "cordovaBuildTarget": "app:ionic-cordova-build",
  169. "devServerTarget": "app:serve"
  170. },
  171. "configurations": {
  172. "production": {
  173. "cordovaBuildTarget": "app:ionic-cordova-build:production",
  174. "devServerTarget": "app:serve:production"
  175. }
  176. }
  177. }
  178. }
  179. }
  180. },
  181. "cli": {
  182. "analytics": false,
  183. "defaultCollection": "@ionic/angular-toolkit"
  184. },
  185. "schematics": {
  186. "@ionic/angular-toolkit:component": {
  187. "styleext": "scss"
  188. },
  189. "@ionic/angular-toolkit:page": {
  190. "styleext": "scss"
  191. }
  192. }
  193. }