Welcome, and thanks in advance for your help! Please follow these simple guidelines :)
Check out our help-wanted or help-wanted-easy labels to find issues we want to move forward on with your help.
In there you will find different issues that we think are important and need some help with. If you're just starting to contribute to Serverless you might want to check out the help-wanted-easy
label first, but as an experienced developer the help-wanted
should be fine as well. The difference is mostly in how much time the tasks will take to implement. Thanks for helping us with those, we really appreciate it.
- Please make sure there is an open issue discussing your Contribution.
- If there isn't, please open an issue so we can talk about it before you invest time into the Implementation.
- When creating an issue follow the guide that Github shows so we have enough information about your proposal.
Please follow these Pull Request guidelines when creating Pull Requests:
- If an Issue exists, leave a comment there that you are working on a solution so nobody else jumps on it.
- If an Issue does not exist, create a new Issue, detail your changes. We recommend waiting until we accept it, so you don't waste your precious time.
- Follow our Testing and Code Style guidelines below.
- Start commit messages with a lowercase verb such as "add", "fix", "refactor", "remove".
- Submit your PR and make sure the Travis-CI builds don't fail and the code coverage isn't lowered.
- Reference the issue in your PR.
Please follow these Issue guidelines for opening Issues:
- Make sure your Issue is not a duplicate.
- Make sure your Issue is for a feature request, bug report, or a discussion about a relevant topic. For everything else, please use our Discourse Forum
We aim for clean, consistent code style. We're using ESlint to check for codestyle issues using the Airbnb preset. If ESlint issues are found our build will fail and we can't merge the PR. To help reduce the effort of creating contributions with this style, an .editorconfig file is provided that your editor may use to override any conflicting global defaults and automate a subset of the style settings. You may need to enable EditorConfig's use by changing a setting or installing a plugin. Using it is not compulsory.
Please follow these Code Style guidelines when writing your unit tests:
- In the root of our repo, use this command to check for styling issues:
npm run lint
- There are likely ESlint plugins for your favorite code editor that will make this easier too!
We aim for 100% test coverage, so make sure your tests cover as much of your code as possible. For test coverage, we use Istanbul locally and Coveralls on our repo. During development, you can easily check coverage by running npm test
, then opening the index.html
file inside the coverage
directory.
Please follow these Testing guidelines when writing your unit tests:
- Include a top-level
describe('ClassName')
block, with the name of the class you are testing. - Inside that top-level
describe()
block, create anotherdescribe('#methodOne()')
block for each class method you might create or modify. - For each method, include an
it('should do something')
test case for each logical edge case in your changes. - As you write tests, check the code coverage and make sure all lines of code are covered. If not, just add more test cases until everything is covered.
- For reference and inspiration, please check our
tests
directory.
If you add a new template or want to test a template after changing it you can run the template integration tests. Make sure you have docker
and docker-compose
installed as they are required. The docker
containers we're using through compose are automatically including your $HOME/.aws
folder so you can deploy to AWS.
To run all integration tests run:
./tests/templates/test_all_templates
To run only a specific integration test run:
tests/templates/integration-test-template TEMPLATE_NAME BUILD_COMMAND
so for example:
tests/templates/integration-test-template aws-java-maven mvn package
If you add a new template make sure to add it to the test_all_templates
file and configure the docker-compose.yml
file for your template.
The easiest thing you can do to help us move forward and make an impact on our progress is to simply provide support to other people having difficulties with their Serverless projects. You can do that by replying to issues on Github, chatting with other community members in our Chat or helping with questions in our Forum.
Maintaining and updating the docs on a regular basis is a hard task. The more eyeballs on the docs the higher quality it'll get and the less chances there will be for typos and confusion. We keep our docs in the docs
folder in our main repo. If you see any issues with our docs, simply open an issue or a PR.
Finally, to make sure you have a pleasant experience while being in our welcoming community, please read our code of conduct. It outlines our core values and believes and will make working together a happier experience.
Thanks again for being a contributor to the Serverless Community!
Cheers, The Serverless Team