这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature request: quiet mode #993

@dobesv

Description

@dobesv

Describe the feature you'd like to request

Turbo has a lot of output for each build, minimum one line per package (even ones that aren't being built) plus a few lines before and after the packages. For us that's about 35 lines of output for every build, which is being run on every file change. Compare that to the webpack watcher which outputs just a few lines per change.

e.g.

• Packages in scope: ... 25 package names over 4 lines ...
• Running build in 25 packages

... 25 lines of "cache hit" ...

 Tasks:    21 successful, 21 total
Cached:    21 cached, 21 total
  Time:    4.437s >>> FULL TURBO

Some issues with this:

  • If the build is in between some other stuff being built I have to scroll to find the other things being built before the turbo run
  • If a build run by turbo fails, it might be in the middle of all the output (including cached success output) requiring a bit more scrolling

I have setup nodemon to run turbo when a source file changes. I also have webpack and some other watchers running to build some other things in the same console. The turbo build output totally dominates the log output, making it hard to find any errors / status messages from those other processes.

Describe the solution you'd like

It would be nice if turbo had a -q / --quiet option that would suppress some output:

  1. Don't print hashes or logs for projects that were already built successfully, only logs from new or failed builds should be output
  2. Don't print whether there was a cache hit or miss before each command
  3. Don't print the list of scopes at the beginning
  4. Reduce the end summary to a single line if something was built, or print nothing if everything was already up-to-date

Describe alternatives you've considered

None

TURBO-1883

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ergonomicsIssues and features impacting the developer experience of using turboarea: loggingImprovements to logginglinear: turboIssues to sync to Linear for Turborepo team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions