Coder Social home page Coder Social logo

exsync's Introduction

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
  1. Start your application the usual way, e.g., iex -S mix, then:
ExSync.start()
  1. (Alternative) Always start ExSync when available, add the following to an application's start/2:
defmodule MyApp do
  use Application

  def start(_type, _args) do
    import Supervisor.Spec, warn: false

    case Code.ensure_loaded(ExSync) do
      {:module, ExSync = mod} ->
        mod.start()
      {:error, :nofile} ->
        :ok
    end

    # ... rest of your applications start script.
  end
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

  1. add your own dirs to monitor, if you want monitor priv dir, use such config:
config :exsync, :addition_dirs, ["/priv"]
  1. add your own extensions
config :exsync, :extensions, [".erl", ".hrl", ".ex", ".tpl"]

exsync's People

Contributors

falood avatar marcparadise avatar princemaple avatar skirino avatar crowdhailer avatar formido avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.