@gfed-medusa/sf-lib-checkout
v2.0.1
Published
This is the checkout library for the GFED Medusa Storefront stack. It contains components, utilities, types, and other resources specific to the carts, orders, and checkout pages.
Downloads
426
Keywords
Readme
GFED Medusa Storefront Checkout Library
This is the checkout library for the GFED Medusa Storefront stack. It contains components, utilities, types, and other resources specific to the carts, orders, and checkout pages.
Installation
Install the package from npm:
pnpm add @gfed-medusa/sf-lib-checkoutFor monorepo or local development, you can use the workspace directive to ensure installation of the latest version locally:
{
"dependencies": {
"@gfed-medusa/sf-lib-checkout": "workspace:*"
}
}Usage
Import components, templates, and other resources into your application:
import { CartItemSelect } from '@gfed-medusa/sf-lib-checkout/components/cart-item-select';
import { Items } from '@gfed-medusa/sf-lib-checkout/templates/cart/items';
import { repeat } from '@gfed-medusa/sf-lib-home/lib/util/repeat';Codegen
To generate GraphQL types, ensure that BFF_URL is defined in your .env file and then run:
pnpm codegen