Skip to content

Automatic recompilation of mix code on file change.

License

Notifications You must be signed in to change notification settings

alexfilatov/remix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remix

Recompiles mix project on any file change/addition (defaults to only watching lib).

Intended for development use only.

Installation

Add remix to deps:

defp deps do
  [{:remix, "~> 0.0.1", only: :dev}]
end

Add add :remix as a development only OTP app.

def application do
  [applications: applications(Mix.env)]
end

defp applications(:dev), do: applications(:all) ++ [:remix]
defp applications(_all), do: [:logger]

Config

  • dirs (default "lib"): A list of directories to search, or binary of a single directory
  • escript (default false): includes escript compilation
  • silent (default false): suppress output to iex when compiling

Watches all files in project, with escript compilation and silent mode:

config :remix,
  dirs: "./",
  escript: true,
  silent: true

Watches the lib and foo directories

config :remix,
  dirs: ["lib", "foo"]

Usage

Save or create a new file in the lib (or other specified) directory. Thats it!

About

Co-authored by the Agilion team during a Brown Bag Beers learning session as an exploration into Elixir, OTP, and recursion.

License

Remix source code is released under the Apache 2 License. Check LICENSE file for more information.

About

Automatic recompilation of mix code on file change.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%