angular.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. "styles": [
  45. "src/styles/styles.scss"
  46. ],
  47. "stylePreprocessorOptions": {
  48. "includePaths": [
  49. "./src/styles"
  50. ]
  51. },
  52. "showCircularDependencies": false,
  53. "allowedCommonJsDependencies": [
  54. "graphql-tag",
  55. "zen-observable",
  56. "lodash",
  57. "apollo-upload-client",
  58. "@vendure/common/lib/simple-deep-clone"
  59. ]
  60. },
  61. "configurations": {
  62. "production": {
  63. "budgets": [
  64. {
  65. "type": "anyComponentStyle",
  66. "maximumWarning": "6kb"
  67. }
  68. ],
  69. "fileReplacements": [
  70. {
  71. "replace": "src/environment.ts",
  72. "with": "src/environment.prod.ts"
  73. }
  74. ],
  75. "optimization": true,
  76. "outputHashing": "all",
  77. "sourceMap": true,
  78. "extractCss": true,
  79. "namedChunks": false,
  80. "aot": true,
  81. "extractLicenses": true,
  82. "vendorChunk": false,
  83. "buildOptimizer": false
  84. }
  85. }
  86. },
  87. "serve": {
  88. "builder": "@angular-devkit/build-angular:dev-server",
  89. "options": {
  90. "browserTarget": "vendure-admin:build"
  91. }
  92. }
  93. }
  94. }
  95. },
  96. "defaultProject": "vendure-admin",
  97. "schematics": {
  98. "@schematics/angular:component": {
  99. "skipTests": true,
  100. "changeDetection": "OnPush"
  101. }
  102. },
  103. "cli": {
  104. "packageManager": "yarn",
  105. "analytics": false
  106. }
  107. }