Popularity
5.1
Declining
Activity
0.0
Stable
40
3
10

Monthly Downloads: 36
Programming language: Elixir
License: BSD 3-clause "New" or "Revised" License
Tags: Miscellaneous    
Latest version: v0.5.2-dev

reprise alternatives and similar packages

Based on the "Miscellaneous" category.
Alternatively, view reprise alternatives based on common mentions on social networks and blogs.

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

Add another 'Miscellaneous' Package

README

Reprise

Build Status hex.pm version hex.pm downloads hex.pm downloads/week hex.pm license

A simplified module reloader for Elixir.

It differs from its predecessors (exreloader, mochiweb reloader) in a way that it scans only beam files of the current mix project and the current env.

Usage

Reprise is best used on dev environment, that's usually where you need reloading of modules. Here goes an example on how to do this:

  • add to deps: {:reprise, "~> 0.5", only: :dev}

  • add to apps:

    def application do
      dev_apps = Mix.env == :dev && [:reprise] || []
      [ applications: dev_apps ++ your_apps ]
    end
    

Then your modules will be reinjected into your node - iex session for instance - with a nice log report, each time you recompile them. Here's an example how it looks like:

iex> 12:14:59.163 [info] Reloaded modules: [Rockside.HTML.DSL, Rockside]

The default interval between scans for changed modules is 1 second. You can check it and set a new one - the unit is milliseconds:

iex(1)> Reprise.Server.interval
1000
iex(2)> Reprise.Server.interval(2000)
{:ok, [prev: 1000]}

License

The code is released under the BSD 2-Clause License.


*Note that all licence references and agreements mentioned in the reprise README section above are relevant to that project's source code only.