Skip to content

A monorepo for proof-of-concept of lit-privacy-sdk.

License

Notifications You must be signed in to change notification settings

Curve-Labs/lit-privacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lit Privacy SDKs

This monorepo is used for the development of lit-privacy-sdk, developed in the context of this grant: LIT-Protocol/LitGrants#35

Packages

  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo
  • lit-privacy-sdk: package that will be used to implement lit procotol for a privacy-enabled processing.
  • lit-actions: package for the development of lit-actions
  • contracts: package for the development of contracts required for the package to work

Architecture

Lit Privacy SDK Architecture Diagram

Utilities

This turborepo has some additional tools already setup:

Build

To build all apps and packages, run the following command:

cd my-turborepo
yarn run build

Getting Started

Clone the repository

Using SSH

git clone [email protected]:Curve-Labs/ie-bacalhau.git

Using HTTPS

git clone https://github.com/Curve-Labs/ie-bacalhau.git

Prerequisites

Global

Package specific

For more information on what prerequisites are required for each package, please refer to the README.md file in the corresponding package.

Installation

To install the dependencies for this project, please run the command yarn install in your terminal. This command will install all the necessary packages required to run the application.

yarn

Develop

To develop all apps and packages, run the following command:

yarn run dev

Usage

For guidance on how to use the individual packages, please refer to the README.md file within each package.

Run any command from within root

yarn workspace <workspaceName> <commandName> ...

List workplaces

yarn workspaces list

Development

Things to keep in mind

  • When making code changes, it is important to consider the scope of the changes. Changes that are relevant to a specific workspace should be made within that workspace.
  • If you want to add scripts, linting rules, or hooks that should apply to the entire repo, they should be added in the root directory.
  • The ./package.json file in the root directory manages the entire monorepo, whereas the ./packages/{WORKSPACE}/package.json file manages only that specific workspace. Any changes made in this file will only affect that workspace.
  • All dependencies are installed globally and there should not be any node_modules folder within the workspace directory.
  • Linting rules and scripts should also be global, therefore added in the root directory.
  • Environment variables are not shared across workspaces and are specific to each one.
  • When importing files from different workspaces, be sure to use the proper path.

Useful Links

Learn more about the power of Turborepo:

About

A monorepo for proof-of-concept of lit-privacy-sdk.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published