nx-devui
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Dev UI for nx

Starts up a terminal-based multiplexed log UI for when you have multiple dev servers and watch processes to start up in your monorepo.

Usage

First install with

npm install nx-devui

Then, assuming you want the dev and watch scripts to run in all projects, add this to your project.json (typically at the root level):

{
  "targets": {
    "dev": {
      "executor": "nx-devui:devui",
      "options": {
        "targets": {
          "dev": true,
          "watch": true
        }
      }
    }
  }
}

You can also show checkmark, error, or loading icons based on stdout or stderr output with "status matchers", which you can also customize per project, e.g.:

{
  "targets": {
    "dev": {
      "executor": "nx-devui:devui",
      "options": {
        "targets": {
          "dev": true,
          "foo:dev": {
            "statusMatchers": {
              "Server listening on port": "success",
              "restarting due to changes": "loading",
              "app crashed": "error"
            }
          }
        }
      }
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i nx-devui

Weekly Downloads

5

Version

0.0.2

License

Apache-2.0

Unpacked Size

36.6 kB

Total Files

17

Last publish

Collaborators

  • romannurik