Thanks for contributing!
npm install
You will find all building blocks that make up Radium in the src
folder.
You will find tests for each module inside src/__tests__
. Whenever making any changes, ensure that all existing tests pass by running npm run test
. You can also have Karma
running in the background and run your tests every time you make a change by doing npm run test-dev
.
If you are adding a new feature or some extra functionality, you should also make sure to accompany those changes with appropriate tests.
Before commiting any changes, be sure to do npm run lint
; this will lint all relevant files using ESLint and report on any changes that you need to make.
- Install flow
- Run
flow
to check for missing annotations and static type check failures
You can run examples locally by simply doing npm run examples
; this will start a webpack dev server (the config file is found at examples/webpack.config.js) making Radium examples available at http://localhost:8080
.
Please note that if you use npm run test-dev
as above, Karma will use port 8080
. You can change the port used by the examples by running npm run examples -- --port 8000
.
Thanks for taking the time to help us make Radium even better! Before you go ahead and submit a PR, make sure that you have done the following:
- Run the tests (you did add tests, right?) using
npm run test-dev
. - Run lint using
npm run lint
- Run flow using
flow
- Update
CHANGELOG.md
, following format for previous versions - Commit as "Changelog for version 0.XX.Y"
- Run
npm version patch
(orminor
,major
as appropriate) to updatepackage.json
and add a tag - Run
npm publish
to run tests and lint, build thelib
andsdist
directories, and publish to NPM if all is well - Run
git push && git push --tags