vans163 / rebar3_auto

Rebar3 plugin to auto compile and reload on file change.
Other
55 stars 14 forks source link

WIP: Add option to extend the list of watched extensions #19

Closed abxy closed 4 years ago

abxy commented 5 years ago

This patch adds an option to extend the list of watched extensions.

To extend the list add an option to your rebar.config like so:

{auto,
  {extensions, [".alp", ".hterl"]}
}.

Marking this as WIP because I'm unsure about the option naming. Maybe it should be called "extra_extensions"? I also didn't find a precedent for using the config section "auto" so I'm not 100% sure about that either.

Initially I thought about allow overriding the extensions list completely but I since I believe the use case for that is small and the user experience would be worse, I decided against that.

Solves #17

vans163 commented 4 years ago

Thanks, https://github.com/vans163/rebar3_auto/commit/41a9e1a07eab0956d794a0c0e64daf39569d1e4c