👋 Hey there! Thanks for your interest in helping out. If you happen to run into any issues following this guide, please open an issue, and we'll do our best to help out.
To begin contributing, you'll first need to clone this repository, then navigate into the repository's directory.
git clone git@github.com:jamesplease/redux-resource.git
cd redux-resource
Next, install the dependencies using npm.
npm install && npm run bootstrap
This repository contains the main Redux Resource library (redux-resource
on npm), as well as extras
("Ecosystem Extras") that can be useful when
using Redux Resource. Each package has its own directory within the
packages
directory of this repository.
Find the library you're interested in updating, and make changes as you see fit.
As you work, and/or when you're done, run npm test
to lint your changes, and
to run the unit tests.
Once you're done, go ahead and open a Pull Request.
💁 Don't sweat it if you can't get the tests to pass, or if you can't finish the changes you'd like to make. If you still open up a Pull Request, we'll make sure it gets figured out.
These scripts are useful when working on the source code.
npm test
: Lint the source and run the unit tests (for all packages)npm run build
: Build all of the librariesnpm bootstrap
: Links the libraries together. This is usually run a single time after annpm install
npm run clean
: The inverse ofnpm bootstrap
; this wipes thenode_modules
from all of the packages.
The source code for the site lives in the docs
directory.
Run npm run docs:watch
to start up the local version of the site at
http://localhost:4000
. As you make changes to the source, your local version
of the website will automatically update and refresh your browser.
Once you're done, commit your changes and open a Pull Request. Also, thanks!
These scripts are useful when working on the website.
npm run docs:watch
: Starts up a local version of the website.npm run docs:clean
: Wipes your locally-built version of the site. This can be useful if you run into any weird errors.npm run docs:publish
: Publishes the site. Only collaborators on the GitHub project will be able to run this one.
If you make a contribution to this project, you should go ahead and add yourself to the list of contributors on the README and the website.
To add yourself, run this command from the terminal:
npm run contributors:add -- {GITHUB_USERNAME} {CONTRIBUTIONS}
Where {GITHUB_USERNAME}
is your GitHub account name, and {CONTRIBUTIONS}
is a
comma-separated list of values from
this guide here.
For instance, if you've contributing docs and code and your username is sallycodes
,
you might do:
npm run contributors:add -- sallycodes doc,code
This command will update the necessary files and make a commit for you. From there, you can open a Pull Request and I'll get it merged in. Oh, and hey – thanks again!