angular.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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": ["src/global.scss", "src/theme/variables.scss"],
  35. "scripts": []
  36. },
  37. "configurations": {
  38. "production": {
  39. "budgets": [
  40. {
  41. "type": "initial",
  42. "maximumWarning": "2mb",
  43. "maximumError": "5mb"
  44. },
  45. {
  46. "type": "anyComponentStyle",
  47. "maximumWarning": "2kb",
  48. "maximumError": "4kb"
  49. }
  50. ],
  51. "fileReplacements": [
  52. {
  53. "replace": "src/environments/environment.ts",
  54. "with": "src/environments/environment.prod.ts"
  55. }
  56. ],
  57. "outputHashing": "all"
  58. },
  59. "development": {
  60. "buildOptimizer": false,
  61. "optimization": false,
  62. "vendorChunk": true,
  63. "extractLicenses": false,
  64. "sourceMap": true,
  65. "namedChunks": true
  66. },
  67. "ci": {
  68. "progress": false
  69. }
  70. },
  71. "defaultConfiguration": "production"
  72. },
  73. "serve": {
  74. "builder": "@angular-devkit/build-angular:dev-server",
  75. "configurations": {
  76. "production": {
  77. "buildTarget": "app:build:production"
  78. },
  79. "development": {
  80. "buildTarget": "app:build:development"
  81. },
  82. "ci": {
  83. "progress": false
  84. }
  85. },
  86. "defaultConfiguration": "development"
  87. },
  88. "extract-i18n": {
  89. "builder": "@angular-devkit/build-angular:extract-i18n",
  90. "options": {
  91. "buildTarget": "app:build"
  92. }
  93. },
  94. "test": {
  95. "builder": "@angular-devkit/build-angular:karma",
  96. "options": {
  97. "main": "src/test.ts",
  98. "polyfills": "src/polyfills.ts",
  99. "tsConfig": "tsconfig.spec.json",
  100. "karmaConfig": "karma.conf.js",
  101. "inlineStyleLanguage": "scss",
  102. "assets": [
  103. {
  104. "glob": "**/*",
  105. "input": "src/assets",
  106. "output": "assets"
  107. },
  108. {
  109. "glob": "**/*.svg",
  110. "input": "node_modules/ionicons/dist/ionicons/svg",
  111. "output": "./svg"
  112. }
  113. ],
  114. "styles": ["src/global.scss", "src/theme/variables.scss"],
  115. "scripts": []
  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. }
  134. }
  135. },
  136. "cli": {
  137. "schematicCollections": [
  138. "@ionic/angular-toolkit"
  139. ],
  140. "analytics": "933a7f17-f45c-41cf-a139-ce17c6706c6e"
  141. },
  142. "schematics": {
  143. "@ionic/angular-toolkit:component": {
  144. "styleext": "scss"
  145. },
  146. "@ionic/angular-toolkit:page": {
  147. "styleext": "scss"
  148. }
  149. }
  150. }