0.0.8 • Published 5 years ago
@vtex/vtex-search-mapper v0.0.8
vtex-search-mapper
Usage
yarn add @vtex/vtex-search-mapperimport { convertFromBiggyProductsToCatalogApiProducts, BiggySearchResult, BiggyProduct, CatalogApiProduct } from '@vtex/vtex-search-mapper'
// ...
const biggySearchResult: BiggySearchResult = await myBiggyClientGetSearchResults(params)
const biggyProducts: BiggyProduct[] = biggySearchResult.products
const newProducts: CatalogApiProduct[] = convertFromBiggyProductsToCatalogApiProducts(biggyProducts)Developing this module
Setup
yarnRun tests
yarn testDevelop tests in watch mode
yarn jestLink this app to other module and develop changes
On this project:
yarn linkTo watch changes locally:
yarn watchOn the other project:
yarn link @vtex/vtex-search-mapperThen any changes you make on this project will reflect on the project that uses it
Release
To release new versions use semver pattern and follow the next commands to choose how to release this package on npm
Patch version
yarn releaseMinor version
yarn release-minorPatch version
yarn release-patch