This repository welcomes all contributions, whether it is a typo fix or a breaking change, or a performance issue. Here are the steps for contributing:
If you have found a bug in the repository or think there can be an enhancement,
go to the Issues
panel in the top left:
In the top right there will be an option to create an issue.
Pull requests allow you to suggest new changes. There are multiple ways of creating pull requests.
If you are simply deleting, renaming, creating, or modifying a file:
-
View that file inside
Github
-
This will automatically fork the repository and create a
patch-ID
branch whereID
will be the number of the nextpatch
branch available. Make your changes then press thePropose Changes
button: -
Now you can review your changes and create a pull request, it will soon be reviewed by a maintainer
When proposing major changes, the above method can be inefficient and tiring. The GitHub
IDE doesn’t have the best features possible.
In these scenarios, making your changes locally will be the best option.
Locally, you can also run the extension and the web app in development mode. Here are the steps for making major changes:
-
Make sure you have
git
,google-chrome
,npm
, andnode
installed. At times,nvm
also helps (NOTE:nvm
is not required) -
Fork the repository by clicking on the button on the top right labeled "Fork":
-
Now copy the link to your codebase:
-
Inside the terminal, run:
git clone URL
and replaceURL
with the URL that you previously copied -
Make your changes from your choice’s code editor. Look at the development section for more tips on developing
-
Once you are done, run
git add .
andgit commit -m MSG
replacingMSG
with your commit message -
Now you can go ahead and run
git push
to push the changes to your fork of the repository -
We are not done yet! The changes are only on your fork. To create a pull request on the repository, click on the pull request button underneath the "Code" option shown in the previous GIF
-
Now you can write out your elaborated pull request message and click on "Create Pull Request"
-
Your PR will soon be reviewed
For the directory structure, look here. Here is a quick explanation of the extension.
Here are some npm
scripts that are useful:
start
- Thestart
command starts up the servers. See the setup instructions for more informationlint
- Thelint
command checks for any linting errors usingprettier
. Runnpm run lint
at the root to find any errorscode-style
- Thecode-style
command will remove linting errors and fix the styling usingprettier
dev
- Creates a folder calleddist/
that can be used for loading the extensionbuild
- Runs thedev
script and zips the resultingdist/
directory