![]() The workspaces field is what Yarn uses to symlink our code to the node_modules in order to reuse and import the code, we'll see this later on.įinally we install lerna as a devDependency to manage the monorepo. □ applications/: This directory will contain all the applications of our monorepo.Īfter that, we're going to create package.json to define the workspaces and dependencies of our monorepo.□ packages/: This directory will contain the isolated modules that we are going to reuse on all the applications. ![]() In this example I created two directories: The first thing we need to do is define the structure of the project. Now that we know what is a monorepo, the tools that we're going to use and what are they useful for, let's create a real example to see how it works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |