From 102647292bba9657484d96c7667713db962d6d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernard=20Stojanovi=C4=87?= Date: Mon, 9 Dec 2024 13:03:16 +0100 Subject: [PATCH] chore: root documentation (#96) --- README.md | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7ce8e92 --- /dev/null +++ b/README.md @@ -0,0 +1,118 @@ +# Sprinter TS - Cross-Chain Developer Toolkit + +## Table of Contents + +- [Sprinter TS - Cross-Chain Developer Toolkit](#sprinter-ts---cross-chain-developer-toolkit) + - [Introduction](#introduction) + - [Prerequisites](#prerequisites) + - [Getting Started](#getting-started) + - [Building](#building) + - [Testing](#testing) + - [Linting and Formatting](#linting-and-formatting) + +--- + + +## Introduction + +Sprinter TS is a powerful developer toolkit designed to simplify cross-chain integrations and enhance the developer experience. It includes: + +- **TypeScript SDK** for strongly typed APIs and simplified interactions. +- **React SDK** with hooks and context for seamless integration into React applications. +- **Comprehensive Documentation** to guide and support developers. + +Whether you're building cross-chain applications or experimenting with decentralized technologies, Sprinter provides the tools you need to succeed. + +--- + + +## Prerequisites + +Before you begin, ensure you have the following installed: + +- Node.js >= 20.0.0 (we recommend using [nvm](https://github.com/nvm-sh/nvm) for managing Node versions) +- Yarn >= 4.3 (via [corepack](https://github.com/nodejs/corepack)) + +--- + + +## Getting Started + +To get started with the project: + +1. Clone the repository: + ```shell + git clone https://github.com/ChainSafe/sprinter-ts.git + ``` + +2. Navigate to the project root: + ```shell + cd sprinter-ts + ``` + +3. Set Node.js to the compatible version _(skip if you use a manual approach)_: + ```shell + nvm use + ``` + +4. Enable Corepack: + ```shell + corepack enable + ``` + +5. Install the dependencies: + ```shell + yarn install + ``` + +--- + + +## Building + +To build all packages, run: + +```shell +yarn build +``` + +--- + +Here's the corrected and updated **Testing** and **Linting and Formatting** documentation that reflects your unchanged `package.json`. + +--- + + +## Testing + +### Run Unit Tests + +```shell +yarn test:unit +``` + +This command executes unit tests in all packages where they are defined. + +### Run Integration Tests + +```shell +yarn test:integrations +``` + +This command executes integration tests in all packages where they are defined. + +--- + + +## Linting and Formatting + +This project uses [ESLint](https://eslint.org/) to enforce code style and formatting. To ensure consistent code quality, you can use the following command: + +### Check for Linting Issues + +```shell +yarn lint +``` + +This command runs the linter across all workspaces to identify any issues. +