Skip to content

Actually let you disable colors with jake#17414

Merged
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:allow-colorless-jake
Jul 25, 2017
Merged

Actually let you disable colors with jake#17414
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:allow-colorless-jake

Conversation

@weswigham
Copy link
Copy Markdown
Member

jake runtests colors=false ran tests with color. This was (super) noticable in our RWC logs.

The Gulpefile uses minimist for argument parsing and handles the flag correctly on colors (just not its aliases, which are not coerced - but that's a minimist issue), so does not need a change.

@weswigham weswigham requested review from a user and sandersn July 25, 2017 21:19
Comment thread Jakefile.js Outdated
}

var colors = process.env.colors || process.env.color || true;
var colors = boolLookup[process.env.colors] !== undefined ? boolLookup[process.env.colors] : boolLookup[process.env.color] !== undefined ? boolLookup[process.env.color] : true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could this just be:

var colorsFlag = process.env.color || process.env.colors;
var colors = colorsFlag !== "false" && colorsFlag !== "0";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure.

@weswigham weswigham merged commit 2d4938d into microsoft:master Jul 25, 2017
@weswigham weswigham deleted the allow-colorless-jake branch July 25, 2017 21:35
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants