angular.json 5.6 KB

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