-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
58 lines (51 loc) · 1.32 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
defmodule Mix.Tasks.Make do
use Mix.Task
@moduledoc """
Runs Makefile in root directory of project. See the documentation
in the Makefile for details.
"""
@shortdoc """
Runs Makefile in root directory of project.
"""
@doc """
Runs Makefile in root directory of project.
"""
def run(_) do
if Mix.shell.cmd("make") != 0 do
Mix.raise "make command failed."
end
end
end
defmodule Ws.Mixfile do
use Mix.Project
def project do
[ app: :ws,
version: "0.0.1",
elixir: "~> 0.14.2",
name: "ws",
source_url: "https://github.com/batwicket/ws",
homepage_url: "https://github.com/batwicket",
deps: deps ]
end
# Configuration for the OTP application
def application do
[
mod: { Ws, [] },
applications: [:phoenix]
]
end
# Returns the list of dependencies in the format:
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
#
# To specify particular versions, regardless of the tag, do:
# { :barbat, "~> 0.1", github: "elixir-lang/barbat" }
defp deps do
[
{:cowboy, "~> 0.10.0", github: "extend/cowboy", optional: true},
{:ex_doc, github: "elixir-lang/ex_doc"},
{:jsex, github: "talentdeficit/jsex"},
{:markdown, github: "devinus/markdown"},
{:phoenix, "0.3.1"}
]
end
end