StoreFront <gb-navigation> component
<gb-navigation>
This module requires @storefront/core for the component to render and receive data from GroupBy microservices.
@storefront/core
This module is meant to be used in a node environment which is bundled for use in the browser.
node
Use npm or yarn to install in a node project that uses webpack, browserify or similar.
npm
yarn
webpack
browserify
npm install --save @storefront/navigation # or yarn add @storefront/navigation
This module provides the <gb-navigation> component for use with StoreFront.
<!-- index.html --> <body> <gb-navigation></gb-navigation> </body>
// index.js storefront.mount('gb-navigation');
To build an individual package, run the following command:
yarn build
To build an individual package in response to changes within the src directory, run the following command:
src
yarn dev
To test an individual packages, run the following command:
yarn test
To test an individual package in response to changes within the src and test directories, run the following command:
test
yarn tdd
To lint a package, run the following command:
yarn lint
To programmatically fix lint errors within a package, run the following command:
yarn lint:fix
Read the contributing file to learn about how to contribute to the StoreFront project.
StoreFront and its related packages are MIT licensed.
Generated using TypeDoc
StoreFront navigation
StoreFront
<gb-navigation>componentGetting Started
This module requires
@storefront/corefor the component to render and receive data from GroupBy microservices.Prerequisites
This module is meant to be used in a
nodeenvironment which is bundled for use in the browser.Installing
Use
npmoryarnto install in anodeproject that useswebpack,browserifyor similar.npm install --save @storefront/navigation # or yarn add @storefront/navigationUsage
This module provides the
<gb-navigation>component for use with StoreFront.Mount tag
<!-- index.html --> <body> <gb-navigation></gb-navigation> </body>// index.js storefront.mount('gb-navigation');Building the package
To build an individual package, run the following command:
yarn buildTo build an individual package in response to changes within the
srcdirectory, run the following command:yarn devRunning tests
To test an individual packages, run the following command:
yarn testTo test an individual package in response to changes within the
srcandtestdirectories, run the following command:yarn tddLinting
To lint a package, run the following command:
yarn lintTo programmatically fix lint errors within a package, run the following command:
yarn lint:fixContributing
Read the contributing file to learn about how to contribute to the StoreFront project.
License
StoreFront and its related packages are MIT licensed.