@poductivity/poductivity-sdk-js v0.11.0
Poductivity SDK - JavaScript
Installation
Simple: From CDN
Include the below script tags in the <head>
section of your web page.
The HTML tags <poductivity-player>
and <poductivity-client>
will be instantly ready to use in your application.
<script type="module" src="https://cdn.jsdelivr.net/npm/@poductivity/poductivity-sdk-js@0/dist/poductivity-sdk-js/poductivity-sdk-js.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@poductivity/poductivity-sdk-js@0/dist/poductivity-sdk-js/poductivity-sdk-js.js"></script>
Advanced: From npm
Install via NPM:
npm install --save @poductivity/poductivity-sdk-js
Apply polyfills as necessary and register the custom elements: (The call to applyPolyfills is optional)
import { applyPolyfills, defineCustomElements } from '@poductivity/poductivity-sdk-js/loader';
applyPolyfills().then(() => {
defineCustomElements();
});
If using a framework such as Angular/React/Vue, you may have to register the components with the framework. Please see here for details.
Usage
Poductivity Embed Player
A HTML embeddable podcast player with Poductivity interaction. Read documentation
Poductivity Client
Add Poductivity interaction to your own podcast player. Read documentation
Development
- Run
npm install
- Run
npm start
- default host is at localhost:3333 - Run tests with
npm run test
ornpm test.watch
- Run linter with
npm run lint
Releasing
- Increment the version with
npm version patch|minor|major
- Run
npm publish
. If lint or tests fail, will not publish.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago