generated from ChainSafe/yarn-workspaces-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 5
chore: root documentation #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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) | ||
|
|
||
| --- | ||
|
|
||
| <a name="introduction"></a> | ||
| ## 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. | ||
|
|
||
| --- | ||
|
|
||
| <a name="prerequisites"></a> | ||
| ## 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)) | ||
|
|
||
| --- | ||
|
|
||
| <a name="getting-started"></a> | ||
| ## 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 | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| <a name="building"></a> | ||
| ## 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`. | ||
|
|
||
| --- | ||
|
|
||
| <a name="testing"></a> | ||
| ## 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. | ||
|
|
||
| --- | ||
|
|
||
| <a name="linting-and-formatting"></a> | ||
| ## 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. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit: nevermind, it works in the rendered file on the branch. https://stackoverflow.com/questions/6695439/how-to-link-to-a-named-anchor-in-multimarkdown