The most popular way to isolate code into separate modules nowadays is by using npm packages (can be done by Yarn or npm). They are wrapped into a folder with their own config files and then pushed to a remote server.