Contributing to @twilio-labs/plugin-serverless
January 27, 2020 · View on GitHub
About the Project
This plugin is a wrapper around other existing tools. When planning to submit a fix please consider submitting the fix to the respective project. When in doubt, create an issue and we are happy to point you into the right direction.
plugin-serverless- Wrapper code needed to interact between thetwilio-runCLI and the Twilio CLItwilio-run- The actual CLI code and the code necessary to do local developmentserverless-api- Module used to interact with the Twilio Serverless API (handles the actual deployment)create-twilio-function- Code run whentwilio serverless:initis called
Requirements
Make sure you have Node.js 10.17 or newer installed
Setup
- Clone project and install dependencies_
git clone https://github.com/twilio-labs/plugin-serverless.git
cd plugin-serverless
npm install
- Install the Twilio CLI
- Locally link your plugin
twilio plugins:link <path_to_your_project>
Contributing
- Perform changes
- Test changes manually using
twilio serverless - Make sure tests pass by running
npm test - Submit a PR
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
Releasing
npm version <major|minor|patch>
git push origin master --follow-tags
npm publish
Code of Conduct
Please be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️
Licensing
All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.