The monorepo provides a toolkit for building apps that interact with Vega, as well as the apps themselves.
This repository is managed using Nx.
The generator consumes an openrpc definition, and provided a template, produces a typescript client.
A generated typescript client based on the openrpc definition of the wallet API.
The wallet user interface.
To run the code in this repository, you will need the following:
- nodejs >
18.12
- yarn >
1.22.19
Check you have the correct version of Node. You can install NVM to switch between node versions. Then NVM install
.
Before you build you will need to yarn install
in the root directory.
Run yarn nx run <my-app>:build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run yarn nx run <my-app>:test
to execute the unit tests with Jest, or nx affected:test
to execute just unit tests affected by a change. You can also use --watch
with these test to run jest in watch mode, see Jest executor for all CLI flags.
In CI linting, formatting and also run. These checks can be seen in the CI workflow file.
- To fix linting errors locally run
yarn nx lint --fix
- To fix formatting errors local run
yarn nx format:write
- For either command you may use
--all
to run across the entire repository
Visit the Nx Documentation to learn more.