Thank you for contributing to the BrightSign Dev Cookbook!
- Code Style: Please adhere to the coding conventions as defined in
.eslintrc
. Runyarn format
before submitting. - Commit Messages: Write clear, concise commit messages that explain the changes made. Use Conventional Commit style messages.
- Pull Requests: For substantial changes, it's best to open an issue for discussion before submitting a pull request.
We look forward to your contributions and suggestions!
To contribute enhancements or fixes to dev-cookbook
, please follow these steps:
-
Fork and Clone: Start by forking the
dev-cookbook
repository. Then, clone your fork locally to make changes. -
Make Changes: Navigate to the specific template or example you wish to improve within the
dev-cookbook
directory. Apply your changes there. -
Test Locally: Test the template by instantiating using the command mentioned in the "Using the Template" section. This step ensures your changes work as expected within the
create-react-app
workflow. If it is anexample-*
, test your changes according to the instructions in the example Readme. -
Commit Changes: After testing your changes, commit them to your fork. Ensure your commit messages clearly describe the enhancements or fixes made. Push your commits to GitHub.
-
Submit a Pull Request (PR): Submit a pull request to the main dev-cookbook repository. Be sure to fill out the predefined PR sections as fully as possible.
-
Code Review: Once your PR is submitted, it will be reviewed by a BrightSign team member. Be open to feedback and ready to make further adjustments based on their suggestions.
cra-template-*
examples can be run on your development machine (via yarn start
) for rapid iteration, with some caveats. The full functionality of @brightsign
API modules are only available on the device, but we have added partial mock implementations for you to develop with locally. Please refer to the JavaScript API Documentation for further details on each API so that you may extend the existing mocks.
You can also extend or create new tests (App.test.js
) and run them with yarn run test
in each example directory dev-cookbook
, or in every workspace by running yarn run test
at the root of the project.
If you want to contribute improvements back to dev-cookbook
, either make your changes directly in the repo or copy them from your create-react-app
project after you have verified them locally and on a device. Be sure to maintain the same directory structure.
dev-cookbook
uses husky to automatically run eslint
and prettier
on commit to maintain code quality. There is also a hook to run tests before pushing to a remote branch. If you would like to suggest improvements, take a look at the hooks configuration in the .husky
directory.
Create a new issue. Be sure to describe the bug and provide clear repro steps.
Create a new issue. Describe the problem you are trying to solve and why a new example would be useful. A BrightSign team member will review.
By contributing to this repo, you agree to license any code submitted under the MIT license. For larger contributions, we may request a Contributor License Agreement.