angular.json 4.2 KB

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