Snapshot Widget
For local development:
- Run
yarn install
- Run
yarn build:watch
- Run
yarn serve
- Go to http://localhost:5000/example.html
Publish to npm:
- Run
yarn build
- Update version number in
./dist/package.json
- Update
./dist/CHANGELOG.md
- Do
npm publish --access public
from./dist
folder. You need to login into npm usingnpm login
for this step.
Deploy to VFF:
We host the widget javascript in VFF
. Steps to deploy to VFF is as follows:
- Create new branch in
VFF
project - Go to
src/static/snapshot_widget/
folder inVFF
project - Run
inv update
and push to your branch - Merge and deploy