angular.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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": [
  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. "styles": [
  113. "src/global.scss",
  114. "src/theme/variables.scss"
  115. ],
  116. "scripts": []
  117. },
  118. "configurations": {
  119. "ci": {
  120. "progress": false,
  121. "watch": false
  122. }
  123. }
  124. },
  125. "lint": {
  126. "builder": "@angular-eslint/builder:lint",
  127. "options": {
  128. "lintFilePatterns": [
  129. "src/**/*.ts",
  130. "src/**/*.html"
  131. ]
  132. }
  133. }
  134. }
  135. }
  136. },
  137. "cli": {
  138. "schematicCollections": [
  139. "@ionic/angular-toolkit"
  140. ],
  141. "analytics": false
  142. },
  143. "schematics": {
  144. "@ionic/angular-toolkit:component": {
  145. "styleext": "scss"
  146. },
  147. "@ionic/angular-toolkit:page": {
  148. "styleext": "scss"
  149. },
  150. "@angular-eslint/schematics:application": {
  151. "setParserOptionsProject": true
  152. },
  153. "@angular-eslint/schematics:library": {
  154. "setParserOptionsProject": true
  155. }
  156. }
  157. }