Do you use NPMap and want to help add features or fix bugs? Thanks! First, though, please take a look at the guidelines below. Following them will ensure that your contribution can make it into the library quickly and with minimal effort.
A bug is a demonstrable problem. Please read the following guidance before reporting an issue:
- Use the search to see if the issue has already been reported. If it already exists, do not open a new issue - simply comment on the existing one.
- Isolate the problem and ensure that the issue is in NPMap itself and not in your code.
- Create a reduced test case.
- If possible, provide a link to a live example. You can use jsFiddle to host examples.
Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) can you reproduce the problem in? All these details will make it easier for NPMap contributors to assess and fix any potential issues.
Here's an example of a good bug report:
Short and descriptive title
A summary of the issue and the environment in which it occurs. If applicable, include the steps required to reproduce the bug:
- First step
- Second step
- Etc.
<url>
(a link to the reduced test case)Any other information you want to share that is relevant to the issue being reported. This might include the file or module name and the line numbers of the code that is causing the bug. You may also want to include potential solutions.
A good bug report should be clear and to the point, and should provide enough information for an NPMap contributor to assess and/or fix the bug without coming back to you for more information.
Ready to submit an issue? Here you go.
We encourage you to submit pull requests! These requests should remain focused in scope and should not contain commits that are unrelated to the feature you are adding or bug you are fixing.
If your contribution involves a significant amount of work or substantial changes to any part of the library, please open an issue to discuss it first.
Please follow this process. It's the best way to get your work included in the project:
- Fork the project.
- Clone your fork (
git clone https://github.com/<your-username>/npmap.git
). - Add an
upstream
remote (git remote add upstream https://github.com/nationalparkservice/npmap.git
). - Get the latest changes from upstream (
git pull upstream <dev-branch>
). - Create a new topic branch to contain your feature, change, or fix (
git checkout -b <topic-branch-name>
). - Make sure that your changes adhere to the coding conventions used throughout the project - indentation, commenting, etc.
- Commit your changes in logical chunks. Use git's interactive rebase feature to tidy up your commits before making them public. Please adhere to these git commit message guidelines or your pull request may not be merged into the main project.
- Locally merge (or rebase) the upstream branch into your topic branch.
- Push your topic branch up to your fork (
git push origin <topic-branch-name>
). - Open a Pull Request with a clear title and description. Please mention which browsers you tested in.