angular.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. "allowedCommonJsDependencies":["markdown-it"],
  17. "outputPath": "www",
  18. "index": "src/index.html",
  19. "main": "src/main.ts",
  20. "polyfills": "src/polyfills.ts",
  21. "tsConfig": "tsconfig.app.json",
  22. "inlineStyleLanguage": "scss",
  23. "assets": [
  24. {
  25. "glob": "**/*",
  26. "input": "src/assets",
  27. "output": "assets"
  28. },
  29. {
  30. "glob": "**/*.svg",
  31. "input": "node_modules/ionicons/dist/ionicons/svg",
  32. "output": "./svg"
  33. }
  34. ],
  35. "styles": ["src/global.scss", "src/theme/variables.scss"],
  36. "scripts": []
  37. },
  38. "configurations": {
  39. "production": {
  40. "budgets": [
  41. {
  42. "type": "initial",
  43. "maximumWarning": "2mb",
  44. "maximumError": "5mb"
  45. },
  46. {
  47. "type": "anyComponentStyle",
  48. "maximumWarning": "2kb",
  49. "maximumError": "4kb"
  50. }
  51. ],
  52. "fileReplacements": [
  53. {
  54. "replace": "src/environments/environment.ts",
  55. "with": "src/environments/environment.prod.ts"
  56. }
  57. ],
  58. "outputHashing": "all"
  59. },
  60. "development": {
  61. "buildOptimizer": false,
  62. "optimization": false,
  63. "vendorChunk": true,
  64. "extractLicenses": false,
  65. "sourceMap": true,
  66. "namedChunks": true
  67. },
  68. "ci": {
  69. "progress": false
  70. }
  71. },
  72. "defaultConfiguration": "production"
  73. },
  74. "serve": {
  75. "builder": "@angular-devkit/build-angular:dev-server",
  76. "configurations": {
  77. "production": {
  78. "buildTarget": "app:build:production"
  79. },
  80. "development": {
  81. "buildTarget": "app:build:development"
  82. },
  83. "ci": {
  84. "progress": false
  85. }
  86. },
  87. "defaultConfiguration": "development"
  88. },
  89. "extract-i18n": {
  90. "builder": "@angular-devkit/build-angular:extract-i18n",
  91. "options": {
  92. "buildTarget": "app:build"
  93. }
  94. },
  95. "test": {
  96. "builder": "@angular-devkit/build-angular:karma",
  97. "options": {
  98. "main": "src/test.ts",
  99. "polyfills": "src/polyfills.ts",
  100. "tsConfig": "tsconfig.spec.json",
  101. "karmaConfig": "karma.conf.js",
  102. "inlineStyleLanguage": "scss",
  103. "assets": [
  104. {
  105. "glob": "**/*",
  106. "input": "src/assets",
  107. "output": "assets"
  108. },
  109. {
  110. "glob": "**/*.svg",
  111. "input": "node_modules/ionicons/dist/ionicons/svg",
  112. "output": "./svg"
  113. }
  114. ],
  115. "styles": ["src/global.scss", "src/theme/variables.scss"],
  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": "8ce62f3c-9825-407d-88b6-daf706787e57"
  142. },
  143. "schematics": {
  144. "@ionic/angular-toolkit:component": {
  145. "styleext": "scss"
  146. },
  147. "@ionic/angular-toolkit:page": {
  148. "styleext": "scss"
  149. }
  150. }
  151. }