For features and issues, please submit a GH Issue appropriately tagged. I'm open to all comments and suggestions, simply file GH Issue with any input or conerns.
Create your own fork of this repository.
# Clone it
$ git clone [email protected]:me/react-donut-chart.git
# Change directory
$ cd react-donut-chart
# Add the upstream repo
$ git remote add upstream git://github.com/vonbearshark/react-donut-chart.git
# Get the latest upstream changes
$ git pull upstream
# Install dependencies
$ npm install
# Run scripts to verify installation
$ npm test
$ npm run lint
demo
- contains the GH Pages demodist
- contains the generated output for GH Pagessrc
- contains the source files for the GH Pages
lib
- contains the module source filesDonutChart.jsx
- main component; requires all subcomponents, initalizes the propertiesDonutInnerText.jsx
- inner donut text component resposible for showing the selected item's label and valueArcs.jsx
- main chart area, responsible for iterating over data and rendering the arc pathsArcPath.jsx
- rendered arc expressions of each itemLegend.jsx
- optional legend componentLegendItem.jsx
- individual legend item showing the colored rectangle, label, and value
mock
- contains the mock data used in testing and demoingtests
- contains testing for alllib
files
npm start
starts the webpack dev server for the demonpm run build:lib
builds thelib/dist
with webpacknpm run build:demo
builds thedemo/dist
with webpacknpm run build
builds bothnpm run lint
runs ESLint checks against the sourcenpm run test
runs Tape test suitenpm run publish
publishes to GH Pagesnpm run deploy
lints, tests, builds, and push to GH Pages
- Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc.
- Lint your code regularly and ensure it passes prior to submitting a PR:
$ npm run lint
. - Ensure existing tests pass (
$ npm test
) and include test cases which fail without your change and succeed with it.
- Ensure that no errors are generated by linting.
- Commit your changes in logical chunks, i.e. keep your changes small per single commit.
- Locally merge (or rebase) the upstream branch into your topic branch:
$ git pull upstream && git merge
. - Push your topic branch up to your fork:
$ git push origin <topic-branch-name>
. - Open a Pull Request with a clear title and description.