Dear contributor,
Thank you! Projects like this are successful because of you!
- Read the the general JSData Contributing Guide
- To report a bug or request a feature, please open an issue
- Be sure to search the existing issues to prevent duplication
- Give your issue a short but descriptive title
- For bug reports, please include all steps to reproduce the error
- For feature requests, please include details of your use case
-
To improve to the JSData + MongoDB tutorial, go to js-data.io/v3.0/docs/js-data-mongodb and click "Suggest Edits"
-
To improve the API Reference Documentation, write a test, fix a bug, or add a feature:
-
Create a fork of github.com/js-data/js-data-mongodb. Click here to do so now.
-
Clone your fork:
git clone git@github.com:YOUR_USERNAME/js-data-mongodb.git -
Change directory to
js-data-mongodb:cd js-data-mongodb -
Install development dependencies
npm install js-data@rc bson mongodb npm install -
To just update API Reference Documentation, make changes to the JSDoc comments in the source code. To regenerate the API documentation:
npm run docYou can find the regenerated API Reference Documentation in the
doc/folder. -
To write a test, fix a bug, or add a feature, make your changes to files in the
src/andtest/folders. -
To run the tests, first make sure MongoDB is running in another terminal window:
mongod --config /path/to/mongod.conf -
Now run the tests:
npm test -
Commit your changes, submit a Pull Request, and wait for review!
coverage/- Code coverage report produced bynpm testdist/- Contains final build files for distributiondoc/- Output folder for JSDocssrc/- Project source codetest/- Project tests
git checkout master- Bump version in
package.jsonappropriately - Update
CHANGELOG.mdappropriately npm run release- Commit and push changes (message should be something like "Prepare for VERSION")
git checkout releasegit merge masternpm run release- Commit and push changes (message should be something like "VERSION")
- Make a new GitHub release
- tag from
releasebranch - set tag name to version
- set release name to version
- set release body to changelog entry for the version
npm publish .git checkout gh-pagescp -r doc/js-data-mongodb/VERSION VERSIONcp -r doc/js-data-mongodb/VERSION latestgit add -Agit commit -m "VERSION"git push -u origin gh-pagesgit checkout master
See also JSData Community & Support.