Skip to content

vegaprotocol/vegawallet-ui

Repository files navigation

Vega wallet ui

The monorepo provides a toolkit for building apps that interact with Vega, as well as the apps themselves.

This repository is managed using Nx.

🔎 Applications in this repo

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.

💻 Development

Dependencies

To run the code in this repository, you will need the following:

  • nodejs > 18.12
  • yarn > 1.22.19

Set up

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.

Build

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.

Running tests

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.

Formatting

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

Further help with Nx

Visit the Nx Documentation to learn more.

📑 License

MIT