Monorepo for all the tooling needed to create a custom Twilio Flex Plugins
Flex Plugin Builder requires Node.js. We support and recommend the LTS versions of Node. This is a monorepo project managed by lerna for creating Twilio Flex plugins.
- @twilio-labs/plugin-flex: The CLI tool for creating, building, testing, deploying, and managing your plugins
For local development of the Flex Plugin Builder itself, follow these steps:
-
Clone the repository and install dependencies:
npm install
-
Link all packages for local development:
npm run link-packages
This command will:
- Create global npm links for all packages in the
/packagesfolder - Link internal dependencies between packages
- Run
npm run linkin the plugin-flex package to register the CLI tool
- Create global npm links for all packages in the
After making any changes to the source code, rebuild the packages:
npm run buildThis ensures that all TypeScript files are compiled and changes are reflected across linked packages.
- The
link-packagesscript only needs to be run once during initial setup - Run
npm run buildafter every code change to see your changes take effect - Use
npm run testto run all tests across packages - Individual packages can be built using
lerna run build --scope=@twilio/<package-name>
Please visit Twilio Docs for the latest docs on Plugins CLI and API.
Major changelogs can be found in the changelog directory.
Check out CONTRIBUTING for more information on how to contribute to this project.
Flex Plugin Builder is licensed under MIT.
Thanks to the wonderful people listed in CONTRIBUTORS.md.
This project follows the all-contributors specification. Contributions of any kind welcome!