Popularity
6.9
Growing
Activity
5.3
-
77
7
19

Monthly Downloads: 4,692
Programming language: Elixir
License: BSD 3-clause "New" or "Revised" License
Tags: Miscellaneous    
Latest version: v0.2.4

exsync alternatives and similar packages

Based on the "Miscellaneous" category

Do you think we are missing an alternative of exsync or a related project?

Add another 'Miscellaneous' Package

README

ExSync

Yet another Elixir reloader.

System Support

ExSync deps on FileSystem

Usage

  1. Create a new application:

    mix new my_app
    
  2. Add exsync to your mix.exs dependencies:

def deps do
  [ {:exsync, "~> 0.2", only: :dev} ]
end

Usage for umbrella project

  1. Create an umbrella project

    mix new my_umbrella_app --umbrella
    
  2. Add exsync to your mix.exs dependencies:

def deps do
  [ {:exsync, "~> 0.2", only: :dev} ]
end
  1. start your umbrella project with exsync task

    iex -S mix exsync
    

Config

All configuration for this library is handled via the application environment.

:addition_dirs - Additional directories to monitor

For example, to monitor the priv directory, add this to your config.exs:

config :exsync, addition_dirs: ["/priv"]

:extensions - List of file extensions to watch for changes. Defaults to: [".erl", ".hrl", ".ex", ".eex"]

:extra_extensions - List of additional extensions to watch for changes (cannot be used with :extensions)

For example, to watch .js and .css files add this to your config.exs:

config :exsync, extra_extensions: [".js", ".css"]

:reload_callback - A callback MFA that is called when a set of files are done reloading. Can be used to implement your own special handling to react to file reloads.

:reload_timeout - Amount of time to wait in milliseconds before triggering the :reload_callback. Defaults to 150ms.

For example, to call MyApp.MyModule.handle_reload() add this to your config.exs:

config :exsync,
  reload_timeout: 75,
  reload_callback: {MyApp.MyModule, :handle_reload, []}