We welcome any kind of contributions. From filing issues, to fixing typos and bugs all the way to creating entirely new templates.
Please be aware though that pull requests that only reword sentences that might already convey the content correctly, might not be merged.
If this is your first time contributing to an open-source project, check out our TwilioQuest tutorial that will teach you in a fun way how to contribute to a project.
- A GitHub account
- git installed on your computer. Learn how to install it
- Node.js version 14 and npm version 8
Under the hood, every CodeExchange Quick Deploy app is powered by a Function Template.
See Quick Deploy apps here: https://www.twilio.com/code-exchange?q=&f=serverless
- Fork this repository
- Clone the repository:
git clone [email protected]:YOUR_GITHUB_USERNAME/function-templates.git
- Install dependencies:
Note: Twilio Functions run in a specific Node.js environment. We keep the currently supported version up-to-date in the .nvmrc file in this project. It's recommended to use a tool like nvm to pick the right version of Node.js before installing the dependencies.
cd function-templates
# nvm use # if you use the nvm tool
npm install
- Verify setup by running tests:
npm test
Check out the dedicated guide to building a new template
Check out the dedicated testing guide
Several static assets shared by every index.html
are served by Github Pages from the /docs/static
directory of this repo. These files all follow semver versioning, and are located in a subdirectory of /docs/static
named after their semver major version number. For example, a file of version 1.2.3
should have a comment header containing Version: 1.2.3
(if possible), and be located in the v1
subdirectory of /docs/static
.
Please open a pull request on the function-templates repository from your fork and fill out the pull request template.
If you are adding a new template please name the pull request after the following convention and update NAME_OF_YOUR_TEMPLATE
with the name of your template directory.
feat(templates): add NAME_OF_YOUR_TEMPLATE template
We want to make sure that this project is as welcoming to people as possible. By interacting with the project in any shape or form you are agreeing to the project's Code of Conduct. If you feel like another individual has violated the code of conduct, please raise a complaint to [email protected].
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.