angular.json 5.1 KB

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