-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Allow customizing CLI colors through .gulprc file #63
Comments
@sttk The first thing that I'd like to address is the |
@phated OK. I'll see the issue and Liftoff. And I'll try it if I can. |
Changed the title here. Also split the .gulprc file to issue #69 |
Random ideas for theming (so they are documented somewhere): // regexp? HIGHLIGHT: (.*)
log.withTheme()
log('Write some text and {HIGHLIGHT: The Thing}', theme)
log('{ERROR: Failed to load external module} {HLIGHT: {NAME}}', {NAME: name})
log('{ERROR}Failed to load external module{/ERROR} {HIGHLIGHT}' + name + '{/HIGHLIGHT}')
log.info('Using gulpfile {HIGHLIGHT: %s}', tildify(env.configPath)); |
@phated I've created a package theming-log to manage text decoration of logging with themes on the trial basis. This package is still a prototype and would be needed to add some functions (for example, printf-style variables). Can you have a look whether it fits your idea? |
@sttk I didn't review the whole project, but I like what I see in the documentation. It touches on a lot of the ideas I had but I'd want to see how it is used for this project. When I was working on ideas, I was trying to avoid a factory function because we don't have themes loaded from the config files before we start logging (e.g. |
@phated Thank you for having a look, and I'm glad you like it. About the way to using theming-log for this package, most of logs in Since logs for About logs in other modules, I think it is possible by overriding methods of gulplog (or a similar new |
Yeah, I was running into color issues on I thought maybe the config loading would have to be merged into the CLI code but that doesn't work if Liftoff is being used to find the cwd and stuff. |
We might as well land this in the next major as well. Moving to the 3.0 milestone. |
I'll address this after fixing the issues of |
I've added customizing mechanism in gulp-cli.
And also I've made colors of a task tree customizable with this.
sttk/gulp-cli#make_customizable
.gulprc
files in user home directory or project working directory.--customize
option.--customize
option which has no value.The text was updated successfully, but these errors were encountered: