angular.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "app": {
  7. "projectType": "application",
  8. "schematics": {},
  9. "root": "",
  10. "sourceRoot": "src",
  11. "prefix": "app",
  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. "inlineStyleLanguage": "scss",
  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/global.scss",
  36. "src/theme/variables.scss"
  37. ],
  38. "scripts": []
  39. },
  40. "configurations": {
  41. "production": {
  42. "budgets": [
  43. {
  44. "type": "initial",
  45. "maximumWarning": "2mb",
  46. "maximumError": "5mb"
  47. },
  48. {
  49. "type": "anyComponentStyle",
  50. "maximumWarning": "2kb",
  51. "maximumError": "4kb"
  52. }
  53. ],
  54. "fileReplacements": [
  55. {
  56. "replace": "src/environments/environment.ts",
  57. "with": "src/environments/environment.prod.ts"
  58. }
  59. ],
  60. "outputHashing": "all"
  61. },
  62. "development": {
  63. "buildOptimizer": false,
  64. "optimization": false,
  65. "vendorChunk": true,
  66. "extractLicenses": false,
  67. "sourceMap": true,
  68. "namedChunks": true
  69. },
  70. "ci": {
  71. "progress": false
  72. }
  73. },
  74. "defaultConfiguration": "production"
  75. },
  76. "serve": {
  77. "builder": "@angular-devkit/build-angular:dev-server",
  78. "configurations": {
  79. "production": {
  80. "buildTarget": "app:build:production"
  81. },
  82. "development": {
  83. "buildTarget": "app:build:development"
  84. },
  85. "ci": {
  86. "progress": false
  87. }
  88. },
  89. "defaultConfiguration": "development"
  90. },
  91. "extract-i18n": {
  92. "builder": "@angular-devkit/build-angular:extract-i18n",
  93. "options": {
  94. "buildTarget": "app:build"
  95. }
  96. },
  97. "test": {
  98. "builder": "@angular-devkit/build-angular:karma",
  99. "options": {
  100. "main": "src/test.ts",
  101. "polyfills": "src/polyfills.ts",
  102. "tsConfig": "tsconfig.spec.json",
  103. "karmaConfig": "karma.conf.js",
  104. "inlineStyleLanguage": "scss",
  105. "assets": [
  106. {
  107. "glob": "**/*",
  108. "input": "src/assets",
  109. "output": "assets"
  110. },
  111. {
  112. "glob": "**/*.svg",
  113. "input": "node_modules/ionicons/dist/ionicons/svg",
  114. "output": "./svg"
  115. }
  116. ],
  117. "styles": [
  118. "src/global.scss",
  119. "src/theme/variables.scss"
  120. ],
  121. "scripts": []
  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. "cypress-run": {
  140. "builder": "@cypress/schematic:cypress",
  141. "options": {
  142. "devServerTarget": "app:serve"
  143. },
  144. "configurations": {
  145. "production": {
  146. "devServerTarget": "app:serve:production"
  147. }
  148. }
  149. },
  150. "cypress-open": {
  151. "builder": "@cypress/schematic:cypress",
  152. "options": {
  153. "watch": true,
  154. "headless": false
  155. }
  156. },
  157. "e2e": {
  158. "builder": "@cypress/schematic:cypress",
  159. "options": {
  160. "devServerTarget": "app:serve",
  161. "watch": true,
  162. "headless": false
  163. },
  164. "configurations": {
  165. "production": {
  166. "devServerTarget": "app:serve:production"
  167. }
  168. }
  169. }
  170. }
  171. }
  172. },
  173. "cli": {
  174. "schematicCollections": [
  175. "@cypress/schematic",
  176. "@ionic/angular-toolkit",
  177. "@schematics/angular"
  178. ],
  179. "analytics": false
  180. },
  181. "schematics": {
  182. "@ionic/angular-toolkit:component": {
  183. "styleext": "scss"
  184. },
  185. "@ionic/angular-toolkit:page": {
  186. "styleext": "scss"
  187. }
  188. }
  189. }