mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
88c8135d9c
`Engine`s internal `coreComponents()` API sets up a bunch of things like a `ProcessManager` and the `ServiceMonitor`. The `ServiceMonitor` activates itself on `embark:engine:started` and practically monitors registered services until the process has been explicitly stopped. There are some commands that don't actually need service monitoring like `build` and a future `exec` command that's in the making. For those cases it's useful to have them disable the service monitor when `coreComponents()` is used. This commit moves the `ServiceMonitor` instantiation out of `coreComponents()` and introduces a new module group instead. This then lets commands that need service monitoring instantiate it explicitly.