AndersDJohnson / use-yarn

Force users to use yarn instead of npm.
https://andersdjohnson.github.io/use-yarn/
ISC License
50 stars 12 forks source link

feat: color output #3

Open AndersDJohnson opened 6 years ago

rodrigooler commented 6 years ago

@AndersDJohnson do you have any idea about the color of the output?

rodrigooler commented 6 years ago

https://github.com/marak/colors.js/ https://github.com/chalk/chalk (I prefer this)

AndersDJohnson commented 6 years ago

@rodrigooler The main issue is the fact that it uses a plain text template file, in which we can't use colors programmatically like that, only in some declarative fashion. Maybe we could support getting the message from a JavaScript file as a Node module that exports a string - that way users could require in whatever color library they prefer.

rodrigooler commented 6 years ago

@AndersDJohnson Mmmmm, I had understood something else haha, it makes sense to do it this way because the user would have that freedom to manipulate output as needed.