sales-channel-components
Install
To add the components to your sales channel.
import SalesChannelComponents from '@lotify/sales-channel-components';
Vue.use(SalesChannelComponents);
Project setup
yarn install
Add to local projects for development
To develop new components or edit current components
- Run
yarn build
- Run
yarn link
- In your sales channel run
yarn link "@lotify/sales-channel-components"
. - Import sales-channel-components as a Vue plugin in your sales channel.
import SalesChannelComponents from '@lotify/sales-channel-components';
import SalesChannelComponentsDev from '@lotify/sales-channel-components/src/main';
const scc = process.env.NODE_ENV === 'development' ? SalesChannelComponentsDev : SalesChannelComponents;
Vue.use(scc);
Compiles and minifies for production
yarn build
Run your unit tests
yarn test:unit
Lints and fixes files
yarn lint
Customize configuration
Deploy using tags
Commit a tag to publish in our pipeline