angular.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. "@ionic/angular-toolkit:page": {
  10. "styleext": "scss",
  11. "standalone": true
  12. }
  13. },
  14. "root": "",
  15. "sourceRoot": "src",
  16. "prefix": "app",
  17. "architect": {
  18. "build": {
  19. "builder": "@angular-devkit/build-angular:browser",
  20. "options": {
  21. "outputPath": "www",
  22. "index": "src/index.html",
  23. "main": "src/main.ts",
  24. "polyfills": "src/polyfills.ts",
  25. "tsConfig": "tsconfig.app.json",
  26. "inlineStyleLanguage": "scss",
  27. "assets": [
  28. {
  29. "glob": "**/*",
  30. "input": "src/assets",
  31. "output": "assets"
  32. }
  33. ],
  34. "styles": ["src/global.scss", "src/theme/variables.scss"],
  35. "scripts": [],
  36. "allowedCommonJsDependencies": [
  37. "camelcase",
  38. "decamelize",
  39. "p-retry",
  40. "crypto-js",
  41. "jquery",
  42. "markdown-it-abbr",
  43. "markdown-it-deflist",
  44. "markdown-it-footnote",
  45. "markdown-it-ins",
  46. "markdown-it-mark",
  47. "markdown-it-ruby",
  48. "markdown-it-sub",
  49. "markdown-it-sup",
  50. "mathjax-full",
  51. "microsoft-cognitiveservices-speech-sdk",
  52. "plantuml-encoder",
  53. "recorder-core",
  54. "spark-md5",
  55. "querystring",
  56. "semver"
  57. ]
  58. },
  59. "configurations": {
  60. "production": {
  61. "budgets": [
  62. {
  63. "type": "initial",
  64. "maximumWarning": "2mb",
  65. "maximumError": "5mb"
  66. },
  67. {
  68. "type": "anyComponentStyle",
  69. "maximumWarning": "2kb",
  70. "maximumError": "4kb"
  71. }
  72. ],
  73. "fileReplacements": [
  74. {
  75. "replace": "src/environments/environment.ts",
  76. "with": "src/environments/environment.prod.ts"
  77. }
  78. ],
  79. "outputHashing": "all"
  80. },
  81. "development": {
  82. "buildOptimizer": false,
  83. "optimization": false,
  84. "vendorChunk": true,
  85. "extractLicenses": false,
  86. "sourceMap": true,
  87. "namedChunks": true
  88. },
  89. "ci": {
  90. "progress": false
  91. }
  92. },
  93. "defaultConfiguration": "production"
  94. },
  95. "serve": {
  96. "builder": "@angular-devkit/build-angular:dev-server",
  97. "configurations": {
  98. "production": {
  99. "buildTarget": "app:build:production"
  100. },
  101. "development": {
  102. "buildTarget": "app:build:development"
  103. },
  104. "ci": {
  105. "progress": false
  106. }
  107. },
  108. "defaultConfiguration": "development"
  109. },
  110. "extract-i18n": {
  111. "builder": "@angular-devkit/build-angular:extract-i18n",
  112. "options": {
  113. "buildTarget": "app:build"
  114. }
  115. },
  116. "test": {
  117. "builder": "@angular-devkit/build-angular:karma",
  118. "options": {
  119. "main": "src/test.ts",
  120. "polyfills": "src/polyfills.ts",
  121. "tsConfig": "tsconfig.spec.json",
  122. "karmaConfig": "karma.conf.js",
  123. "inlineStyleLanguage": "scss",
  124. "assets": [
  125. {
  126. "glob": "**/*",
  127. "input": "src/assets",
  128. "output": "assets"
  129. }
  130. ],
  131. "styles": ["src/global.scss", "src/theme/variables.scss"],
  132. "scripts": []
  133. },
  134. "configurations": {
  135. "ci": {
  136. "progress": false,
  137. "watch": false
  138. }
  139. }
  140. },
  141. "lint": {
  142. "builder": "@angular-eslint/builder:lint",
  143. "options": {
  144. "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
  145. }
  146. }
  147. }
  148. }
  149. },
  150. "cli": {
  151. "schematicCollections": [
  152. "@ionic/angular-toolkit"
  153. ],
  154. "analytics": "0a7c76e2-5799-46c4-8d71-c4ec80703dd1"
  155. },
  156. "schematics": {
  157. "@ionic/angular-toolkit:component": {
  158. "styleext": "scss"
  159. },
  160. "@ionic/angular-toolkit:page": {
  161. "styleext": "scss"
  162. },
  163. "@angular-eslint/schematics:application": {
  164. "setParserOptionsProject": true
  165. },
  166. "@angular-eslint/schematics:library": {
  167. "setParserOptionsProject": true
  168. }
  169. }
  170. }