Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

feat(@angular-devkit/core): add support for color and no-color - #245

Merged
filipesilva merged 1 commit into
angular:masterfrom
hansl:terminal-colors
Nov 28, 2017
Merged

feat(@angular-devkit/core): add support for color and no-color#245
filipesilva merged 1 commit into
angular:masterfrom
hansl:terminal-colors

Conversation

@hansl

@hansl hansl commented Oct 29, 2017

Copy link
Copy Markdown
Contributor

And namespace the terminal.

color256: level > 1,
color16m: level > 2,

rows: isTerminalStream ? _getRows() : null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use stream.isTTY instead of passing in isTerminalStream: https://nodejs.org/api/tty.html.

We had a PR for doing that in the CLI recently angular/angular-cli#8501

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've set the default to it, but technically this could be used outside of Node. I've let that other PR in, that's actually nice to have.

@filipesilva filipesilva self-assigned this Nov 28, 2017
@filipesilva
filipesilva merged commit 203f956 into angular:master Nov 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants