Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

flex-plugin

1.3.4 • Public • Published

npm npm NpmLicense

flex-plugin

Library to help building Twilio Flex Plugins.

Installation

npm install flex-plugin

Usage

import { loadPlugin, FlexPlugin } from 'flex-plugin';
 
class MyPlugin extends FlexPlugin {
  pluginName = 'MyPlugin';
 
  init(flex, manager) {
    // setup your flex
    flex.TaskCanvas.Content.add(<p>Hello</p>);
  }
}
 
loadPlugin(MyPlugin);

Contributing

Make sure to follow the instructions in the main repository to setup the project

# Install dependencies and link local packages with each other 
cd packages/flex-plugin
npx lerna bootstrap
 
# Run tests 
npm test
 
# To use your local package in a different project 
npm link
# then in a different project 
npm link flex-plugin

Contributors

Thank you to all the lovely contributors to this project. Please check the main repository to see all contributors.

License

MIT

Keywords

install

npm i flex-plugin

Downloadsweekly downloads

93

version

1.3.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability