provide the common widgets to be used across marketing plugins
Note: Components migrated to Armor are currently in beta release and can be accessed at v3.0.0-beta.X
. To contribute to the Armor migration, you can raised pull requests targeting the armor
branch
This package provides a compiled css file that you must include in your root file.
import '@deliveryhero/mmt-widgets/build/styles.css';
To use the widgets from this package just import them into your component file.
import { ComponentWidget } from '@deliveryhero/mmt-widgets';
-
Clone this repository
-
Run
yarn install
-
Run
yarn link
-
Run
cd node_modules/react && yarn link
-
Run
cd ../react-dom && yarn link
-
Go to your project and link all the following dependencies
yarn link @deliveryhero/mmt-widgets
yarn link react
yarn link react-dom
-
Build this project using
yarn build
-
Voila, happy developing!
-
Create a release tag in GitHub
-
Wait for the build and publish to finish
-
Install latest dependency
NPM
npm install @deliveryhero/mmt-widgets@latest
Yarn
yarn add @deliveryhero/mmt-widgets@latest