Introduction to workspaces
As you'll remember from Chapter 9, Composable Plugins – Create Your First Plugin, in the Publishing to NPM section, we used a computer machine technique called symbolic linking, which helped us to test our Rematch plugin on another code base without the requirement of publishing the package to NPM.
However, this situation sometimes gets harder because linking creates a symbolic link to our project folder, also to node_modules
, and sometimes we get in trouble with duplicate dependencies, or, even worse, our symbolic link breaks our development environment.
Basically, in this book, we have forced the scenario of building the same application for the web and now mobile with React Native, but our application will have the same business logic, the same data layer, the same way of fetching and accessing the data: Rematch.
To handle this situation, we could just create a Git repository with our website and the business logic and another Git...