暫無描述

angular.json 5.2KB

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