This project is powering twilio-run but can also be used as a standalone module in other integrations.
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
Make sure you have Node.js 8.10 or newer installed. Due to compatibility with Twilio Functions this project has to support at least Node.js 8.10.
- Clone project and install dependencies
git clone https://github.com/twilio-labs/serverless-api.git
cd serverless-api
npm install- Perform changes
- Make sure tests pass by running
npm test - Run
git committo kick off validation and enter your commit message. We are using conventional commits for this project. When you rungit commitit will triggercommitizento assist you with your commit message. - Submit a Pull Request
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub
The project uses standard-version to bump and git tag the version as well as update the CHANGELOG.md. Here are the steps you need to run to release a new version:
For example to release a new pre-release version containing beta and releasing it as next:
npm release -- --prerelease beta
git push origin next --follow-tags
npm publish --tag nextFor a normal release standard-version will detect the version increment automatically. Run:
npm release
git push origin master --follow-tags
npm publishTo ship a specific version instead (like a forced minor bump) you can run:
npm release -- --release-as minor
git push origin master --follow-tags
npm publishPlease be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️
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.