oyster/README.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

## Setup
This is a yarn 2 monorepository. It works off of a yarn 2 cjs dump version-controlled in the repo so that everybody
has the same version. Each folder is it's own workspace, and the workspaces can link together via package.json additions.
Each workspace can in addition be published and version controlled ultimately, so that one workspace can depend on a static
version on another instead of the current setup, which is more of a symlinking, similar to the way Lerna used to allow it.
"""
yarn install
"""
## Running an app
"""
yarn workspace lending start
"""
In general, to run a package.json script in a project, just do """yarn workspace project script-name"""
## Clearing the cache in yarn 2
DO NOT DELETE THE .YARN FOLDER. It is not like the old node_modules, which has been deprecated. Use """yarn cache clean""".
2021-02-06 19:00:56 -08:00
## Adding a new package
Note that in addition to adding a new package to the packages folder, one also needs to add a new entry to the top level tsconfig.json to let the TS transpiler know that it is fair game.
2020-11-16 20:59:53 -08:00
## ⚠️ Warning
2021-01-22 21:29:01 -08:00
2020-11-16 20:59:53 -08:00
Any content produced by Solana, or developer resources that Solana provides, are for educational and inspiration purposes only. Solana does not encourage, induce or sanction the deployment of any such applications in violation of applicable laws or regulations.