angular.json 4.1 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. }
  84. },
  85. "defaultConfiguration": "development"
  86. },
  87. "extract-i18n": {
  88. "builder": "@angular-devkit/build-angular:extract-i18n",
  89. "options": {
  90. "buildTarget": "app:build"
  91. }
  92. },
  93. "test": {
  94. "builder": "@angular-devkit/build-angular:karma",
  95. "options": {
  96. "main": "src/test.ts",
  97. "polyfills": "src/polyfills.ts",
  98. "tsConfig": "tsconfig.spec.json",
  99. "karmaConfig": "karma.conf.js",
  100. "inlineStyleLanguage": "scss",
  101. "assets": [
  102. {
  103. "glob": "**/*",
  104. "input": "src/assets",
  105. "output": "assets"
  106. },
  107. {
  108. "glob": "**/*.svg",
  109. "input": "node_modules/ionicons/dist/ionicons/svg",
  110. "output": "./svg"
  111. }
  112. ],
  113. "styles": ["src/global.scss", "src/theme/variables.scss"],
  114. "scripts": []
  115. },
  116. "configurations": {
  117. "ci": {
  118. "progress": false,
  119. "watch": false
  120. }
  121. }
  122. },
  123. "lint": {
  124. "builder": "@angular-eslint/builder:lint",
  125. "options": {
  126. "lintFilePatterns": [
  127. "src/**/*.ts",
  128. "src/**/*.html"
  129. ]
  130. }
  131. }
  132. }
  133. }
  134. },
  135. "cli": {
  136. "schematicCollections": [
  137. "@ionic/angular-toolkit"
  138. ],
  139. "analytics": false
  140. },
  141. "schematics": {
  142. "@ionic/angular-toolkit:component": {
  143. "styleext": "scss"
  144. },
  145. "@ionic/angular-toolkit:page": {
  146. "styleext": "scss"
  147. }
  148. }
  149. }