angular.json 4.0 KB

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