Skip to content

Commit

Permalink
feat(primary-collection): package fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdbrug committed Sep 22, 2023
1 parent 0a0cdb5 commit 352344c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/vendure-plugin-primary-collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.0 (2023-09-18)

Implemented services, resolvers and tests.
- Initial setup([#258](https://github.com/Pinelab-studio/pinelab-vendure-plugins/pull/258))

# 1.0.1 (2023-09-22)

- Added index barrel file to export plugin ([#261](https://github.com/Pinelab-studio/pinelab-vendure-plugins/pull/261))
4 changes: 2 additions & 2 deletions packages/vendure-plugin-primary-collection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Vendure version](https://img.shields.io/badge/dynamic/json.svg?url=https%3A%2F%2Fraw.githubusercontent.com%2FPinelab-studio%2Fpinelab-vendure-plugins%2Fmain%2Fpackage.json&query=$.devDependencies[%27@vendure/core%27]&colorB=blue&label=Built%20on%20Vendure)

To construct breadcrumbs and URL's it's useful to have a primary collection for each product, in case a product is part of multiple collections. This plugin extends `vendure`'s `Product` graphql type adding a `primaryCollection` field which points to the primary collection of a product, which is the the highest placed collection in Vendure (Collection's are sortable in Vendure, and it's a good practice to sort by importance).
To construct breadcrumbs and URL's it's useful to have a primary collection for each product, in case a product is part of multiple collections. This plugin extends Vendure's `Product` graphql type adding a `primaryCollection` field which points to the primary collection of a product, which is the the highest placed collection in Vendure (Collection's are sortable in Vendure, and it's a good practice to sort by importance).

## Getting started

Expand All @@ -12,4 +12,4 @@ Add the plugin to your `vendure-config.ts`:
plugins: [PrimaryCollectionPlugin];
```

and your good to go with this just that.
And your good to go with just that.
2 changes: 1 addition & 1 deletion packages/vendure-plugin-primary-collection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pinelab/vendure-plugin-primary-collection",
"version": "1.0.0",
"version": "1.0.1",
"description": "Adds a primary collection to all Products by extending vendure's graphql api",
"author": "Surafel Melese Tariku <[email protected]>",
"homepage": "https://pinelab-plugins.com/",
Expand Down
1 change: 1 addition & 0 deletions packages/vendure-plugin-primary-collection/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './primary-collection-plugin';

0 comments on commit 352344c

Please sign in to comment.