Package Exports
- @storefront/collections
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@storefront/collections) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
StoreFront collections
StoreFront <gb-collections> component
Getting Started
This module requires @storefront/core for the component to render
and receive data from GroupBy microservices.
Prerequisites
This module is meant to be used in a node environment which is bundled for use in the browser.
Installing
Use npm or yarn to install in a node project that uses webpack, browserify or similar.
npm install --save @storefront/collections
# or
yarn add @storefront/collectionsUsage
This module provides the <gb-collections> component for use with StoreFront.
Mount tag
<!-- index.html -->
<body>
<gb-collections></gb-collections>
</body>// index.js
storefront.mount('gb-collections');Running the tests
Tests can be run to generate coverage information.
Once run, open coverage/index.html in your browser to view coverage breakdown.
npm start coverage
# or
yarn start coverageTests can be run continuously for development
npm run tdd
# or
yarn tddTests can also be run alone
npm test
# or
yarn test