@servant/servant-discovery
v1.0.14
Published
Servant discovery library that can communicate with other servant processes.
Downloads
9
Readme
Servant discovery
Quick references: Command line, Node API, servant.json, dev-server
What is it?
Servant also come with feature called "Servants link". If there are more Servants run in watch mode, there are communicating each others. Servant detects others packages and can rebuild modules that are connected through dependencies. Let's look on some example. You have a company monorepo "main-app" with packages. Also, there is company repo "library-app". Some package from "main-app" has dependency to "library-app". Both repos use Servant as build tool. If you run "main-app" and "library-app" in watch mode, Servant run from "main-app" detect that there is a "library-app" Servant running and link this into "main-app". So now "main-app" use live build of library "library-app" and also, if you make some changes Servant first ensure rebuild of "library-app" and then "main-app". And that's all :) You never need to create some link and another hacks manually!
This library is used for establish connection between other Servant process and sending them commands. Also contains ping and hello runtime to discover new process or check if all connected process are still alive. Can be used separately to implement in own build tool or just for your special purposes.