kemalyst / kemalyst-generator

Rails like command line for Kemalyst
MIT License
12 stars 2 forks source link

Add options to watch for templates #21

Open TechMagister opened 7 years ago

TechMagister commented 7 years ago

An idea : -> Add options to watch templates files

ex: -t erb => add -w "./src//*.erb" -t slang => add -w "./src/*/.slang" -t liquid => add -w "./src//*.liquid"

and so on.

What do you think ?

drujensen commented 7 years ago

:+1: Maybe make it more generic and support any extensions so you could provide a list of extensions to watch? That way if they have both erb and slang in the same project, they can provide both. Also if they have other support files like xml, that they can add them to be watched as well. Thoughts?

TechMagister commented 7 years ago

Yes, using an -e option like this : kgen watch -e xml -e slang -e whatever It will add "./src/**/*.xml", "./src/**/*.slang" and "./src/**/*.whatever" to the watch list.

drujensen commented 7 years ago

:+1: Excellent!