@spotx/analytics_ui_plugins 🔌💡
analytics_ui_plugins repo allows us to create custom Viz npm packages that can be imported into the analytics platform.
For a complete list of SpotX NPM plugins, visit npm-spotx.
All of the packages hosted on NPM are published under the @spotx
organization scope.
Organization scopes are like namespaces, and they allow multiple members to publish and update packages under one common namespace.
How to Build and Publish to NPM
-
Add a new plugin or make changes to the existing one
-
Publish to NPM
- Bump package.json version. We follow the semver naming convetion ( npm version <major | minor | patch> )
- In the root repo, run yarn install then yarn build
- Log into NPM
- Push your changes using npm publish --access public
-
You can test your changes by pulling the package locally
- npm i @spotx/analytics_ui_plugins
- cd into node_modules/@spotx/analytics_ui_plugins
- /src file will not be included, we only care about the minified files in the lib folder
Contribution and development guide
License
Apache-2.0