Newly Purchased Memories
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

flex-plugin

1.1.1 • 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

87

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability