I adopted this organization for convenience, since having both projects in the same repo made it easy to search for functions and classes, and facilitated refactors. I originally had all the code in the same repository: the back end used Node.js and the front end used ES6 with Pug. I had this same question after a few months working on my personal website. In this article, Jorge explains why they’re a great tool and how to create your first monorepo using Yarn with basic npm scripts, and add the required dependencies for each app.Īny time I start working on a new project, I ask myself, “Should I use separate git repositories for my back-end server and my front-end client(s)? What’s the best way to organize the codebase?” Yarn workspaces let you organize your project codebase using a monolithic repository (monorepo).
0 Comments
Leave a Reply. |