elixir-thrift/example/mix.exs
Michael Oliver 76cc14d637
Add an example project (#412)
* Add an example project

* Fix credo/ebert issues

* Re-run formatter

* add vector products to example, capitalize Thrift, change divide matching
2018-08-28 17:12:45 -07:00

38 lines
772 B
Elixir

defmodule Calculator.MixProject do
use Mix.Project
def project do
[
app: :calculator,
version: "0.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
deps: deps(),
deps_path: "../deps",
lockfile: "../mix.lock",
# Thrift configuration
compilers: [:thrift | Mix.compilers()],
thrift: [
files: Path.wildcard("thrift/*.thrift"),
output_path: "lib/"
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Calculator.Application, []}
]
end
defp deps do
[
# Note: you will want to replace the next line to get elixir-thrift from either
# Hex or GitHub in your own project.
{:thrift, path: ".."}
]
end
end