@abtestingalpha/widget
v0.0.20
Published
Test Widget
Downloads
33
Readme
Installing for local development and testing
Widget
- Clone repo
git clone [email protected]:abtestingalpha/widget.git
- Enter widget directory
cd widget
- Install dependencies for widget
yarn
- Use right node version
nvm use
- Create a link to the widget package to allow user in consumer app
yarn link
- Create a build to be used by consumer app. This is live reload (through Rollup's
watch
flag), which will need to remain running so changes to the widget code are updated in the build (which is referenced by the consumer app).
yarn watch
Example React consumer
Open up another terminal window
Enter React app directory
cd examples/with-react
- Install dependencies for React app
yarn
- Link widget to allow use in consumer app
yarn link @abtestingalpha/widget
- Start consumer app
yarn start