Skip to content

Custom labels #121

Open
Open
@astorije

Description

@astorije

We would like to use the --print-labels option, but when giving npm-run-all extra arguments (for example npm-run-all --print-labels \"build -- --watch\" [...]), this prints very long labels that add clutter to the output.

With concurrently, we manage this with --names, but that forces us to use both npm-run-all and concurrently, while I would much rather only using npm-run-all.

It would be great if we could either:

  • Specify a custom label. Not sure what would be the best syntax for it, but I can think of 2 at least:

    • concurrently-like, so in the example above, that would be:
      npm-run-all --print-labels --labels=build,[...] \"build -- --watch\" [...]
    • Some way to prefix commands:
      npm-run-all --print-labels build:\"build -- --watch\" [...]
  • Or if there was a way to strip extra arguments from the command given (in the example above, that would just be build) but that could be problematic with commands like npm-run-all --print-labels \"build -- --arg1\" \"build -- --arg2\" [...] (though a bit of a niche use case)

Activity

mysticatea

mysticatea commented on Jan 15, 2018

@mysticatea
Owner

Thank you for this issue. Apology for the slow response.

The concurrently-like option seems nicer. Because npm-run-all allows glob-like patterns to specify task names (e.g. build:\"build:* -- --watch\"), the label can apply to multiple tasks.

jonaskello

jonaskello commented on Oct 7, 2018

@jonaskello

Having shorter labels would be really nice. Any progress on this?

linked a pull request that will close this issue on Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @astorije@jonaskello@mysticatea

      Issue actions

        Custom labels · Issue #121 · mysticatea/npm-run-all