mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-14 11:55:12 +08:00
33 lines
717 B
Elixir
33 lines
717 B
Elixir
defmodule LivebookProto.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :livebook_proto,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.14",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
aliases: aliases()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[extra_applications: [:logger]]
|
|
end
|
|
|
|
defp deps do
|
|
[{:protobuf, "~> 0.12.0"}]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
"protobuf.generate": [
|
|
"cmd protoc --elixir_out=one_file_per_module=true:lib --elixir_opt=include_docs=true --elixir_opt=gen_struct=true --elixir_opt=package_prefix=livebook_proto messages.proto",
|
|
"format lib/livebook_proto/*.pb.ex",
|
|
"deps.get",
|
|
"compile"
|
|
]
|
|
]
|
|
end
|
|
end
|