Go to file
Dummy Tester 123 a17fd8d4e3 Things are mostly working 2021-02-09 18:26:06 -06:00
.vscode Intermediary step where ive gotten everything at least green and moved to common and linked 2021-02-06 16:08:34 -06:00
packages Things are mostly working 2021-02-09 18:26:06 -06:00
.editorconfig Things are mostly working 2021-02-09 18:26:06 -06:00
.gitignore Massive checkin of import fixes 2021-02-08 21:17:27 -06:00
.prettierrc Working on monorepo typescript setup 2021-02-05 21:21:35 -06:00
LICENSE Initial 2021-02-04 20:14:29 -06:00
README.md Fixes to get common working 2021-02-06 21:00:56 -06:00
lerna.json Things are mostly working 2021-02-09 18:26:06 -06:00
package-lock.json Things are mostly working 2021-02-09 18:26:06 -06:00
package.json Things are mostly working 2021-02-09 18:26:06 -06:00
tsconfig.json Things are mostly working 2021-02-09 18:26:06 -06:00

README.md

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""".

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.

⚠️ Warning

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.