lipsumar / design-system-framework

9 stars 2 forks source link

Help user if nothing found in `config.components-path` #19

Open lipsumar opened 8 years ago

lipsumar commented 8 years ago

Currently DSF fails with a scary error. It could probably be more helpful. Maybe it could ask user some basic config when started with insufficient config.

$ npm run dsf
> Oh dear, it seems DSF is not fully configured. Would you like some help to get started ? [Y/n]
$ y
> Let's start with the path to your components:
$ src/lib/html-components
> Found 12 components in "src/lib/html-components", looks good ? [Y/n]
etc...

Then it would write a nice JSON with the config.

Macxim commented 8 years ago

Some colors would be nice too.

lipsumar commented 8 years ago

Yup. I usually use chalk for that.

Emmanuel Sent from my mobile

Le 29 avr. 2016 à 11:58, Maxime Laforet notifications@github.com a écrit :

Some colors would be nice too.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

lipsumar commented 8 years ago

I added API.log. It uses fancy-log and chalk.

log.warning will make it yellow.

Component.log has been added as well. It will prepend the component id. (not sure i like the current style of that though...)