If you find a bug in the source code or a mistake in the documentation, you can help by submitting an issue here.
- Clone this repository
- Install NPM
- Install dev dependencies
npm install
npm install -g gulp
REACT_VERSION=<version> ./install_react.sh
- Run the tests
npm test
- Start the server and watch files
npm run livereload
If you want to add a new npm package to node_modules
:
-
Install the new package
npm install [your package] --save
will install and save to dependencies in package.json and
npm install [your package] --save-dev
will add it to devDependencies.
-
Commit to repository
-
Make sure you are on
master
branch and have pulled the latest changes. -
Now do the release (there is an npm command for this):
npm run release:[<newversion> | major | minor | patch | premajor | preminor | prepatch]
After this you can pull down the latest module version from npm.
-
Make sure you are on
master
branch and have pulled the latest changes. -
Run the
release:beta
NPM script:npm run release:prerelease
or
npm run release:beta
Before you submit your pull request consider the following guidelines:
-
Search GitHub for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
-
Make your changes in a new git branch:
git checkout -b my-fix-branch master
-
Create your patch, including appropriate unit test cases
-
Commit your changes using a descriptive commit message
-
Build your changes locally to ensure all the tests pass:
npm run dist npm run test
-
Push your branch to GitHub:
git push origin my-fix-branch
-
In GitHub, send a pull request to
reactjs-components:master
. -
If we suggest changes then:
-
Make the required updates.
-
Re-run the test suite to ensure tests are still passing.
-
If necessary, rebase your branch and force push to your GitHub repository (this will update your Pull Request):
git rebase master -i git push origin my-fix-branch -f
-
That's it! Thank you for your contribution!