Review the following guidelines for submitting questions, issues, or changes to this repository.
If you have issues using the SDK or have a question about the AppConfiguration service, you can ask a question on Stack Overflow. Be sure to include the ibm-appconfiguration
tag.
This SDK project follows a coding style based on the Airbnb conventions.
This repository uses eslint
for linting the JavaScript files.
The rules are defined in .eslintrc.js
file.
It is recommended that you do not change these files, since they complies with the defined rules.
You can run the linter with the following commands. Replacing “check” with “fix” will cause the linter to automatically fix any linting errors that it can.
npm run eslint:check
If you encounter an issue with the Node SDK, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible somebody has encountered this issue already.
If you want to contribute to the repository, here's a quick guide:
- Fork the repository
- Install dependencies:
npm install
- Respect the original code style guide.
- Only use spaces for indentation.
- Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
- Check for unnecessary whitespace with
git diff --check
before committing. - You can run the style check by running the
npm run eslint:check
- Make the test pass
- Commit your changes
- Commits should follow the Angular commit message guidelines. This is because our release tool uses this format for determining release versions and generating changelogs. To make this easier, we recommend using the Commitizen CLI with the
cz-conventional-changelog
adapter.
- Commits should follow the Angular commit message guidelines. This is because our release tool uses this format for determining release versions and generating changelogs. To make this easier, we recommend using the Commitizen CLI with the
- Push to your fork and submit a pull request to the
master
branch
- Clone this repository:
git clone https://github.com/IBM/appconfiguration-node-sdk.git
- Install the test dependencies with:
npm install
- Run the test cases with:
npm run test-unit npm run test-integration
See the jest documentation for all the options you can use to further configure jest
.
The SDK is integrated with jest
to provide the test coverage report. After running the test, coverage information is generated & stored in the coverage
folder.
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.