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 doc
You 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 test
dist/
- Contains final build files for distributiondoc/
- Output folder for JSDocssrc/
- Project source codetest/
- Project tests
git checkout master
- Bump version in
package.json
appropriately - Update
CHANGELOG.md
appropriately npm run release
- Commit and push changes (message should be something like "Prepare for VERSION")
git checkout release
git merge master
npm run release
- Commit and push changes (message should be something like "VERSION")
- Make a new GitHub release
- tag from
release
branch - set tag name to version
- set release name to version
- set release body to changelog entry for the version
npm publish .
git checkout gh-pages
cp -r doc/js-data-mongodb/VERSION VERSION
cp -r doc/js-data-mongodb/VERSION latest
git add -A
git commit -m "VERSION"
git push -u origin gh-pages
git checkout master
See also JSData Community & Support.