-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat(cli, config): cli.bannerColor
option
#6399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #6399 +/- ##
==========================================
+ Coverage 95.65% 95.65% +<.01%
==========================================
Files 79 79
Lines 2692 2693 +1
Branches 696 696
==========================================
+ Hits 2575 2576 +1
Misses 101 101
Partials 16 16
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't include typescript logic here. It may be better an option to customize color.
build.ui.titleColor
option to change the color of the Nuxt title
I've exposed a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call it bannerColor
instead of ui.titleColor
, since we don't immediately have any other options to place under that key.
…s into add-blue-for-typescript
build.ui.titleColor
option to change the color of the Nuxt titlebuild.bannerColor
option to change the color of the Nuxt title
Done! |
packages/cli/src/utils/banner.js
Outdated
@@ -20,7 +20,11 @@ export function showBanner (nuxt, showMemoryUsage = true) { | |||
const messageLines = [] | |||
|
|||
// Name and version | |||
titleLines.push(`${chalk.green.bold('Nuxt.js')} ${nuxt.constructor.version}`) | |||
let bannerColor = 'green' | |||
if (nuxt.options.build) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a CLI config why in build namespace? 🤔We have config/cli namespace.
packages/cli/src/utils/banner.js
Outdated
@@ -20,7 +20,11 @@ export function showBanner (nuxt, showMemoryUsage = true) { | |||
const messageLines = [] | |||
|
|||
// Name and version | |||
titleLines.push(`${chalk.green.bold('Nuxt.js')} ${nuxt.constructor.version}`) | |||
let bannerColor = 'green' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep defaults in config package (test snapshots require update)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks ❤️
build.bannerColor
option to change the color of the Nuxt titleconfig.bannerColor
option
config.bannerColor
optioncli.bannerColor
option
@danielroe @pi0 Is there any reason the banner border color hasn't be set to the new option ? :P |
I have the same question 😳 |
@kevinmarrec @Exeteres I like the idea! (Mind you, in production mode there will be green in the picture too.) |
Types of changes
Description
This exposes a
build.bannerColor
option to change the color of the Nuxt title in the CLI banner.Resolves: #6397
Checklist:
I think that might be overkill for a simple cosmetic change