/livedev

Automatically recompile a mix project on file changes when running in interactive mode with IEx

Primary LanguageElixirApache License 2.0Apache-2.0

Livedev

Automatically recompile a mix project on file changes when running in interactive mode with IEx.

Pre requisites

Livedev uses Watchman as a backbone for file watching service. A running Watchman deamon is required in order to use Livedev.

Watchman install on MacOS via Homebrew

brew update
brew install watchman

Watchman binary downloads for Linux, Windows and MacOS without homebrew

  1. Go to recent CI builds
  2. Click on the last CI build
  3. Choose your platform on the left sidebar
  4. Download the binary on "Artifacts" dropdown on the top right

Please refer to instalation for detailed instructions.

Installation

The package can be installed by adding livedev to your list of dependencies in mix.exs:

def deps do
  [
    {:livedev, github: "trestini/livedev", only: :dev}
  ]
end

Note: The updated hex package will only be provided after initial alpha stage (version 0.1.0+)

Usage

Start the Mix project in IEx with:

iex -S mix

Start Livedev watching with:

Livedev.start