AgilionApps / remix

Automatic recompilation of mix code on file change.
Other
149 stars 26 forks source link

add silent mode and escript support #5

Closed SophisticaSean closed 8 years ago

SophisticaSean commented 8 years ago

Quick commit to add silent mode and escript support, relatively new to elixir so pardon me for any errors. I have tested this and it works fine for me without any additional configuration from a user. If they want the new features then its purely opt-in, else it will behave how it did before I altered the functionality.

alanpeabody commented 8 years ago

Thanks for the PR @SophisticaSean !!

I actually have a couple of questions:

  1. How does the escript support work (eg, how would you use it)?
  2. Could we use config.exs values to set the options instead of defining them in the mix file?
SophisticaSean commented 8 years ago
  1. I've been writing a CLI in elixir and having to manually run mix escript.build is a hyper pain in the butt, opening up a iex session in one tab or tmux window etc. and having it auto build the executable is super convenient and allows me to quickly manually test/use my CLI without having to build it. It just builds the executable just like it builds the app when a file is changed in lib.
  2. Definitely! I'll get working on that now.
SophisticaSean commented 8 years ago

neat i spelled config wrong, 10/10

alanpeabody commented 8 years ago

Cool, thanks!