Firstly, thank you for taking the time to contribute! Contributions of any size are always appreciated.
The library is built using the node environment, so you need to have that already installed along with git. First you will need to fork then clone the repository and install the dependancies. If you are not sure how to do either of these things, check the github and npm documentation respectively.
Also, you may wish to have a look at the trainlink dev environment which is recommended for working on the whole project.
If you have a feature in mind or a bug you'd like to fix, great! If not, have a look at the open issues and see if there is something you might like to work on.
To help make your changes, you can view the documentation for the library here. Once you have made your changes and are ready to try them out, you can build the library using:
$ npm run buildThen before creating a PR, run the following commands:
$ npm testto run the unit tests and check test coverage and:
$ npm run formatto format your code correctly.
Please try to add JSDoc comments to methods and classes to help others understand what your code means!
Stores all files related to GitHub Actions
Contains the compiled Javascript output plus typesript type files
Contains the autogenerated documentation files, these are built from JSDoc comments
Where all the source files are, this is generally where you want to be working