https://github.com/trestini/livedev
Automatically recompile a mix project on file changes when running in interactive mode with IEx
https://github.com/trestini/livedev
elixir elixir-iex iex watchman
Last synced: 4 months ago
JSON representation
Automatically recompile a mix project on file changes when running in interactive mode with IEx
- Host: GitHub
- URL: https://github.com/trestini/livedev
- Owner: trestini
- License: apache-2.0
- Created: 2019-12-15T16:23:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-16T03:07:03.000Z (over 6 years ago)
- Last Synced: 2025-10-24T01:58:24.787Z (8 months ago)
- Topics: elixir, elixir-iex, iex, watchman
- Language: Elixir
- Size: 13.7 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Livedev
Automatically recompile a mix project on file changes when running in interactive mode with IEx.
## Pre requisites
Livedev uses [Watchman](https://facebook.github.io/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](https://github.com/facebook/watchman/actions?query=is%3Asuccess+event%3Apush+branch%3Amaster)
1. Click on the last CI build
1. Choose your platform on the left sidebar
1. Download the binary on "Artifacts" dropdown on the top right
Please refer to [instalation](https://facebook.github.io/watchman/docs/install.html) for detailed instructions.
## Installation
The package can be installed by adding `livedev` to your list of dependencies in `mix.exs`:
```elixir
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
```