mirror of
https://github.com/valitydev/elixir-thrift.git
synced 2024-11-06 02:05:16 +00:00
76cc14d637
* Add an example project * Fix credo/ebert issues * Re-run formatter * add vector products to example, capitalize Thrift, change divide matching
38 lines
772 B
Elixir
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
|