angular.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "home-assistant": {
  7. "projectType": "application",
  8. "schematics": {
  9. "@schematics/angular:component": {
  10. "style": "scss"
  11. }
  12. },
  13. "root": "",
  14. "sourceRoot": "src",
  15. "prefix": "app",
  16. "architect": {
  17. "build": {
  18. "builder": "@angular/build:application",
  19. "options": {
  20. "browser": "src/main.ts",
  21. "polyfills": [
  22. "zone.js"
  23. ],
  24. "tsConfig": "tsconfig.app.json",
  25. "inlineStyleLanguage": "scss",
  26. "assets": [
  27. {
  28. "glob": "**/*",
  29. "input": "public"
  30. }
  31. ],
  32. "styles": [
  33. "src/styles.scss",
  34. {
  35. "input": "node_modules/@ionic/angular/css/core.css"
  36. },
  37. {
  38. "input": "node_modules/@ionic/angular/css/normalize.css"
  39. },
  40. {
  41. "input": "node_modules/@ionic/angular/css/structure.css"
  42. },
  43. {
  44. "input": "node_modules/@ionic/angular/css/typography.css"
  45. },
  46. {
  47. "input": "node_modules/@ionic/angular/css/display.css"
  48. },
  49. {
  50. "input": "node_modules/@ionic/angular/css/padding.css"
  51. },
  52. {
  53. "input": "node_modules/@ionic/angular/css/float-elements.css"
  54. },
  55. {
  56. "input": "node_modules/@ionic/angular/css/text-alignment.css"
  57. },
  58. {
  59. "input": "node_modules/@ionic/angular/css/text-transformation.css"
  60. },
  61. {
  62. "input": "node_modules/@ionic/angular/css/flex-utils.css"
  63. },
  64. {
  65. "input": "src/theme/variables.css"
  66. }
  67. ]
  68. },
  69. "configurations": {
  70. "production": {
  71. "budgets": [
  72. {
  73. "type": "initial",
  74. "maximumWarning": "500kB",
  75. "maximumError": "1MB"
  76. },
  77. {
  78. "type": "anyComponentStyle",
  79. "maximumWarning": "4kB",
  80. "maximumError": "8kB"
  81. }
  82. ],
  83. "outputHashing": "all"
  84. },
  85. "development": {
  86. "optimization": false,
  87. "extractLicenses": false,
  88. "sourceMap": true
  89. }
  90. },
  91. "defaultConfiguration": "production"
  92. },
  93. "serve": {
  94. "builder": "@angular/build:dev-server",
  95. "configurations": {
  96. "production": {
  97. "buildTarget": "home-assistant:build:production"
  98. },
  99. "development": {
  100. "buildTarget": "home-assistant:build:development"
  101. }
  102. },
  103. "defaultConfiguration": "development"
  104. },
  105. "extract-i18n": {
  106. "builder": "@angular/build:extract-i18n"
  107. },
  108. "test": {
  109. "builder": "@angular/build:karma",
  110. "options": {
  111. "polyfills": [
  112. "zone.js",
  113. "zone.js/testing"
  114. ],
  115. "tsConfig": "tsconfig.spec.json",
  116. "inlineStyleLanguage": "scss",
  117. "assets": [
  118. {
  119. "glob": "**/*",
  120. "input": "public"
  121. }
  122. ],
  123. "styles": [
  124. "src/styles.scss"
  125. ]
  126. }
  127. },
  128. "ionic-cordova-serve": {
  129. "builder": "@ionic/angular-toolkit:cordova-serve",
  130. "options": {
  131. "cordovaBuildTarget": "home-assistant:ionic-cordova-build",
  132. "devServerTarget": "home-assistant:serve"
  133. },
  134. "configurations": {
  135. "production": {
  136. "cordovaBuildTarget": "home-assistant:ionic-cordova-build:production",
  137. "devServerTarget": "home-assistant:serve:production"
  138. }
  139. }
  140. },
  141. "ionic-cordova-build": {
  142. "builder": "@ionic/angular-toolkit:cordova-build",
  143. "options": {
  144. "browserTarget": "home-assistant:build"
  145. },
  146. "configurations": {
  147. "production": {
  148. "browserTarget": "home-assistant:build:production"
  149. }
  150. }
  151. }
  152. }
  153. },
  154. "inventory-assistant": {
  155. "projectType": "library",
  156. "root": "projects/inventory-assistant",
  157. "sourceRoot": "projects/inventory-assistant/src",
  158. "prefix": "lib",
  159. "architect": {
  160. "build": {
  161. "builder": "@angular/build:ng-packagr",
  162. "configurations": {
  163. "production": {
  164. "tsConfig": "projects/inventory-assistant/tsconfig.lib.prod.json"
  165. },
  166. "development": {
  167. "tsConfig": "projects/inventory-assistant/tsconfig.lib.json"
  168. }
  169. },
  170. "defaultConfiguration": "production"
  171. },
  172. "test": {
  173. "builder": "@angular/build:karma",
  174. "options": {
  175. "tsConfig": "projects/inventory-assistant/tsconfig.spec.json",
  176. "polyfills": [
  177. "zone.js",
  178. "zone.js/testing"
  179. ]
  180. }
  181. }
  182. }
  183. }
  184. },
  185. "cli": {
  186. "schematicCollections": [
  187. "@ionic/angular-toolkit"
  188. ],
  189. "analytics": "eaf0fa18-d15c-4241-b951-36d45648937f"
  190. },
  191. "schematics": {
  192. "@ionic/angular-toolkit:component": {
  193. "styleext": "scss"
  194. },
  195. "@ionic/angular-toolkit:page": {
  196. "styleext": "scss"
  197. }
  198. }
  199. }