Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AgilionApps/remix
Automatic recompilation of mix code on file change.
https://github.com/AgilionApps/remix
Last synced: 8 days ago
JSON representation
Automatic recompilation of mix code on file change.
- Host: GitHub
- URL: https://github.com/AgilionApps/remix
- Owner: AgilionApps
- License: other
- Created: 2014-12-17T23:56:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T21:48:49.000Z (about 6 years ago)
- Last Synced: 2024-10-02T06:22:41.073Z (about 1 month ago)
- Language: Elixir
- Size: 14.6 KB
- Stars: 149
- Watchers: 9
- Forks: 28
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Automatic recompilation of Mix code on file change. (Build Tools)
- fucking-awesome-elixir - remix - Automatic recompilation of Mix code on file change. (Build Tools)
- awesome-elixir - remix - Automatic recompilation of Mix code on file change. (Build Tools)
README
# Remix
Recompiles mix project on any lib file change/addition.
Intended for development use only.
## Installation
Add remix to deps:
```elixir
defp deps do
[{:remix, "~> 0.0.1", only: :dev}]
end
```Add add `:remix` as a development only OTP app.
```elixir
def application do
[applications: applications(Mix.env)]
enddefp applications(:dev), do: applications(:all) ++ [:remix]
defp applications(_all), do: [:logger]```
with escript compilation (in config.exs) and
silent mode (won't output to iex each time it compiles):
```elixir
config :remix,
escript: true,
silent: true
```
If these vars are not set, it will default to verbose (silent: false) and no escript compilation (escript: false).## Usage
Save or create a new file in the lib directory. Thats it!
## About
Co-authored by the Agilion team during a Brown Bag Beers learning session as an exploration into Elixir, OTP, and recursion.
## License
Remix source code is released under the Apache 2 License. Check LICENSE file for more information.