Refer to our issue tracker and contribute to any open issues you are able to spot there. If you have any new issues, please do post there as well. We welcome any form of contribution and are open to any new ideas you may have for the project!
To start contributing, create a fork from our repo and send a PR. Refer to this article for more information.
assets
contains static assets.commons
contains components or other code common to more than one page.features
contains action creators, reducers and type declarations for specific functions.pages
contains pages and components used only in one page; its layout should mirror the actual routes.styles
contains all SCSS styles.
The frontend comes with an extensive test suite. To run the tests after you made your modifications, run
yarn test
. Regression tests are run automatically when you want to push changes to this repository.
The regression tests are generated using jest
and stored as snapshots in src/\_\_tests\_\_
. After modifying the frontend, carefully inspect any failing regression tests reported in red in the command line. If you are convinced that the regression tests and not your changes are at fault, you can update the regression tests by running:
yarn test --updateSnapshot
Before pushing to Github, ensure that your code is formatted and your tests are passing. These two commands should help with that:
yarn run format
: formats your codeyarn run test
: runs the tests and prints the output
See js-slang README for instructions how to run your own js-slang in the frontend.
We reference this guide.
See also the this standard in the wiki.