Table of Contents
Welcome! We’re excited that you’re interested in using the CDC Open Visualization Environment (COVE), and are looking forward to working with you on this project. As you work through the project's initial setup, you’re in the best position to report any issues you might run into (ie. compilation errors or gaps in our documentation). If something doesn't make sense, please open an issue and let us know!
We welcome many different types of contributions including:
- Code
- Design/Usability
- Copy/Documentation
- Accesibility
- Security & Performance
Please see the additional sections below before initiating a pull request. All ideas and questions should be routed through a Github Issue.
Please start all feature requests, bug reports, and ideas by opening an issue so that our internal project maintainers are aware of the ideas you want to contribute. We'll do our best to accommodate your request, however, our internal team makes final decisions on how the project is structured. Pitching your ideas early will help avoid unnecessary work and increase your chances of a successful pull request.
Issues labeled "Help Wanted" are a great place to start for a first contribution.
The best way to get questions answered is by opening an issue. We treat Github Issues the same as our internal communication tools and will respond in a timely manner. In the future, we hope to provide additional communication tools for project support.
This repository is a monorepo that is managed with Lerna and uses yarn for package management. Make sure you have yarn installed before beginning. To work on individual packages you must setup the entire monorepo.
- Start by cloning/forking this repo and running
yarn install
at the root. - Run
lerna bootstrap —force-local
and Lerna will initialize all the packages for you. - (If using Windows) Change the import from 'react-table' to 'react-table/src' in the DataTable component of these pacakges: Map, Chart, Editor, Dashboard (TODO: fix this)
- Run
lerna run build
to build all of the packages in the correct order. - To begin working on an individual package, run
lerna run --scope @cdc/package_name start
, replacing package_name with the package's name (ex: @cdc/map).
Notice - all pull requests you should branch from and target dev.
Branch Name | Description |
---|---|
main | Default branch we create releases on |
test | Development branch we use to test on |
dev | Development branch we use to branch features on |
After pulling the code to your local, the main
branch will be checked out by default. Switch to test using git checkout test
and then create a feature branch to work on using gitflow, or manually using:
git checkout -b feature/new-feature-branch
You should open a pull request after a project maintainer has approved your idea in a Github Issue.
Steps for submitting a pull request:
-
Fork the repository
- When forking, uncheck Copy the main branch only
-
Clone to your local using ssh
-
Important - Create a new branch from the test branch
-
Reference relevant issues in your pull request
-
Include supporting documentation and screenshots
-
Fill out the pull request template to the best of your ability, and be sure to reset the base branch to test
- Note - Some items in the template might not apply
- Tag a project maintainer in the pull request for review
- One of our project maintainers will provide timely feedback
The COVE team thanks you for considering our project. Once your pull request is accepted and merged through our internal release process, you'll be able to see your updates on the main branch and npm.