Note This version of the frontend has been deprecated in favor of https://github.com/yearn/yearn.fi but can still be accessed here
Code style follows prettier conventions (yarn prettier
). Commit messages follow the Conventional Commits spec.
Fork the original repo into your GitHub account
Clone the forked repo from your GitHub account to your local machine
git clone https://github.com/<your-gh>/yearn-finance-v3.git
Set origin to your fork. This is where you push your changes to. This is done automatically by the step above.
git remote add origin https://github.com/<your-gh>/yearn-finance-v3
Set upstream to original repo.
git remote add upstream https://github.com/yearn/yearn-finance-v3.git
Create .env
file in root directory of repo then copy contents of .env.example
to .env
cp .env.example .env
REACT_APP_INFURA_PROJECT_ID
should remain blank because we are currently using Alchemy as our providerREACT_APP_ALCHEMY_API_KEY
alchemy api key should be provided by the contributor if he hits api limitsgit fetch
git checkout -b <your branch name> upstream/develop
git add .
git commit -S -m "message"
git fetch
git merge upstream/develop
git push origin <branch-name>
Pull requests
and then click on New pull request
compare across forks
compare:
and select branch that you want to create a pull request for then click on create pull request
yarn dev
or for Windows:
yarn dev-win
REACT_APP_ALLOW_DEV_MODE=true
in your .env
Enable Dev Mode
yarn build
yarn start
We use i18n react with locize cli to update/download translations.
Refer to main repo for documentation: https://github.com/locize/locize-cli
Sync with: yarn syncDevLocales
must provide api key
Check sync changes with: yarn checkDevLocales
Download prod locales with: yarn downloadProdLocales