angular.json 5.1 KB

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