angular.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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:application",
  20. "options": {
  21. "outputPath": {
  22. "base": "www"
  23. },
  24. "index": "src/index.html",
  25. "polyfills": [
  26. "src/polyfills.ts"
  27. ],
  28. "tsConfig": "tsconfig.app.json",
  29. "inlineStyleLanguage": "scss",
  30. "assets": [
  31. {
  32. "glob": "**/*",
  33. "input": "src/assets",
  34. "output": "assets"
  35. }
  36. ],
  37. "styles": ["src/global.scss", "src/theme/variables.scss"],
  38. "scripts": [],
  39. "browser": "src/main.ts"
  40. },
  41. "configurations": {
  42. "production": {
  43. "budgets": [
  44. {
  45. "type": "initial",
  46. "maximumWarning": "2mb",
  47. "maximumError": "5mb"
  48. },
  49. {
  50. "type": "anyComponentStyle",
  51. "maximumWarning": "2kb",
  52. "maximumError": "4kb"
  53. }
  54. ],
  55. "fileReplacements": [
  56. {
  57. "replace": "src/environments/environment.ts",
  58. "with": "src/environments/environment.prod.ts"
  59. }
  60. ],
  61. "outputHashing": "all"
  62. },
  63. "development": {
  64. "optimization": false,
  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. "styles": ["src/global.scss", "src/theme/variables.scss"],
  112. "scripts": []
  113. },
  114. "configurations": {
  115. "ci": {
  116. "progress": false,
  117. "watch": false
  118. }
  119. }
  120. },
  121. "lint": {
  122. "builder": "@angular-eslint/builder:lint",
  123. "options": {
  124. "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
  125. }
  126. }
  127. }
  128. }
  129. },
  130. "cli": {
  131. "schematicCollections": ["@ionic/angular-toolkit"]
  132. },
  133. "schematics": {
  134. "@ionic/angular-toolkit:component": {
  135. "styleext": "scss"
  136. },
  137. "@ionic/angular-toolkit:page": {
  138. "styleext": "scss"
  139. },
  140. "@angular-eslint/schematics:application": {
  141. "setParserOptionsProject": true
  142. },
  143. "@angular-eslint/schematics:library": {
  144. "setParserOptionsProject": true
  145. }
  146. }
  147. }