forked from lycus/flect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
29 lines (24 loc) · 787 Bytes
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
defmodule Flect.Mixfile do
use Mix.Project
def project() do
[app: :flect,
version: "0.1",
escript_main_module: Flect.Application,
escript_path: Path.join("ebin", "flect"),
escript_emu_args: "%%! -noshell +B\n"]
end
def application() do
[applications: [],
mod: {Flect.Application, []}]
end
end
defmodule Mix.Tasks.Docs do
@shortdoc "Generates documentation for the compiler library"
def run(_) do
Mix.Task.run("loadpaths")
Mix.shell.cmd("elixir -pa ebin -S exdoc " <>
"Flect #{Mix.project()[:version]} " <>
"-m Flect.Application " <>
"-u https://github.com/lycus/flect/blob/master/%{path}#L%{line}")
end
end