Contributing to the opsdroid ecosystem is strongly encouraged and every little bit counts! There are so many ways to contribute to opsdroid:
- Write code to solve issues in the opsdroid core repository
- Contribute to opsdroid directly (Python)
- Improve the official documentation to help others get started
- Write skills, connectors or database modules
- Contribute to the opsdroid home page (it's a Jekyll website)
- Post about your experience using opsdroid on your own blog
- Submit lots of useful issues
- Create logo variations and banners for promotion
- Contribute to opsdroid desktop (electron and react app)
- Promote opsdroid in a meaningful way
- Fork the repository (quicklink)
- Clone your fork locally with
https://github.com/<your username>/opsdroid-web
- Create a new branch for your feature
git checkout -b <branch name>
- install the dependencies with
yarn install
ornpm install
- install pre-commit locally (only need to be done once) with
pre-commit install
- Start the development server with
yarn start
This project uses react-testing-library
for testing. You should run the tests before opening a PR when developing new features or fixing bugs. You should also add tests or update existing ones when appropriate.
You can run the tests with the command:
yarn test
/npm run test
In the project directory, you can run:
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
Runs eslint on all the files under scr/
and informs you of any linting issues.
Because fixing lint manually is so 2000, you can run this command to automatically fix all the lint issues that your files may have.
Runs the typescript compiler to confirm that all files are typed correctly and don't have any issues. Note: This is the script run with pre-commit.
Maintainers and project owners can make a new release of the app. This section describes the steps to make such release.
- Safety Checks
git pull main
(if you are using a fork usegit pull upstream main
)git status
(confirm that there aren't uncommitted changes if they aregit diff
)yarn test
(double check that tests are still green)
- Prepare the release
yarn build
(confirm that the app builds without errors/warnings)
- Update the changelog
- Update the version number
npm version
- Publish to npm (you might need to be added to npm)
npm publish
- Publish to Github
git push --tags