angular.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
  3. "version": 1,
  4. "newProjectRoot": "projects",
  5. "projects": {
  6. "vendure-admin": {
  7. "root": "",
  8. "sourceRoot": "src",
  9. "projectType": "application",
  10. "prefix": "vdr",
  11. "schematics": {
  12. "@schematics/angular:component": {
  13. "style": "scss"
  14. }
  15. },
  16. "architect": {
  17. "build": {
  18. "builder": "@angular-devkit/build-angular:browser",
  19. "options": {
  20. "aot": true,
  21. "baseHref": "/",
  22. "outputPath": "dist",
  23. "index": "src/index.html",
  24. "main": "src/main.ts",
  25. "polyfills": "src/polyfills.ts",
  26. "tsConfig": "src/tsconfig.app.json",
  27. "assets": [
  28. {
  29. "glob": "**/*.*",
  30. "input": "static-assets",
  31. "output": "assets"
  32. },
  33. "src/favicon.ico",
  34. {
  35. "glob": "favicon.ico",
  36. "input": "static-assets",
  37. "output": "/"
  38. },
  39. "src/vendure-ui-config.json",
  40. "src/theme.min.css",
  41. "src/assets",
  42. "src/i18n-messages",
  43. {
  44. "glob": "logo-*.png",
  45. "input": "static-assets",
  46. "output": "assets"
  47. }
  48. ],
  49. "styles": [
  50. "src/global-styles.scss"
  51. ],
  52. "stylePreprocessorOptions": {
  53. "includePaths": [
  54. "./src/styles"
  55. ]
  56. },
  57. "showCircularDependencies": false,
  58. "allowedCommonJsDependencies": [
  59. "graphql-tag",
  60. "zen-observable",
  61. "lodash",
  62. "apollo-upload-client",
  63. "@vendure/common/lib/simple-deep-clone"
  64. ]
  65. },
  66. "configurations": {
  67. "production": {
  68. "budgets": [
  69. {
  70. "type": "anyComponentStyle",
  71. "maximumWarning": "6kb"
  72. }
  73. ],
  74. "fileReplacements": [
  75. {
  76. "replace": "src/environment.ts",
  77. "with": "src/environment.prod.ts"
  78. }
  79. ],
  80. "optimization": true,
  81. "outputHashing": "all",
  82. "sourceMap": true,
  83. "extractCss": true,
  84. "namedChunks": false,
  85. "aot": true,
  86. "extractLicenses": true,
  87. "vendorChunk": false,
  88. "buildOptimizer": false
  89. }
  90. }
  91. },
  92. "serve": {
  93. "builder": "@angular-devkit/build-angular:dev-server",
  94. "options": {
  95. "browserTarget": "vendure-admin:build"
  96. }
  97. }
  98. }
  99. }
  100. },
  101. "defaultProject": "vendure-admin",
  102. "schematics": {
  103. "@schematics/angular:component": {
  104. "skipTests": true,
  105. "changeDetection": "OnPush"
  106. }
  107. },
  108. "cli": {
  109. "packageManager": "yarn",
  110. "analytics": false
  111. }
  112. }