@servant/servant-discovery
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Servant 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.

License

Licensed under GPLv3

Readme

Keywords

Package Sidebar

Install

npm i @servant/servant-discovery

Weekly Downloads

2

Version

1.0.14

License

GPL-3.0-or-later

Unpacked Size

46.7 kB

Total Files

14

Last publish

Collaborators

  • hacker.stanislav