Skip to content

Commit f1408d7

Browse files
committed
feat: ✨ setup mix project
1 parent 593f896 commit f1408d7

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

mix.exs

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
defmodule FpLab3.MixProject do
2+
@moduledoc """
3+
Settings for fp_lab3 mix project.
4+
"""
5+
6+
use Mix.Project
7+
8+
@version "version" |> File.read!() |> String.trim()
9+
10+
def project do
11+
[
12+
app: :fp_lab3,
13+
elixir: "~> 1.17",
14+
elixirc_paths: elixirc_paths(Mix.env()),
15+
preferred_cli_env: [
16+
# Test coverage
17+
coveralls: :test,
18+
"coveralls.detail": :test,
19+
"coveralls.post": :test,
20+
"coveralls.html": :test,
21+
"coveralls.cobertura": :test
22+
],
23+
test_coverage: [tool: ExCoveralls],
24+
start_permanent: Mix.env() == :prod,
25+
deps: deps(),
26+
aliases: aliases(),
27+
28+
# Docs
29+
name: "functional-programming-3",
30+
source_url: "https://github.com/maxbarsukov-itmo/functional-programming-3",
31+
homepage_url: "https://github.com/maxbarsukov-itmo/functional-programming-3",
32+
33+
# Hex
34+
description: description(),
35+
package: package(),
36+
version: @version
37+
]
38+
end
39+
40+
def application do
41+
[
42+
extra_applications: [:logger]
43+
]
44+
end
45+
46+
# Specifies which paths to compile per environment.
47+
defp elixirc_paths(:test), do: ["lib", "test/support"]
48+
defp elixirc_paths(_), do: ["lib"]
49+
50+
defp deps do
51+
[
52+
# Testing
53+
{:quixir, "~> 0.9", only: :test},
54+
55+
# Test coverage
56+
{:excoveralls, "~> 0.18", only: :test},
57+
58+
# Linting & formatting
59+
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
60+
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
61+
{:ex_check, "~> 0.16.0", only: [:dev], runtime: false}
62+
]
63+
end
64+
65+
def aliases do
66+
[]
67+
end
68+
69+
def description do
70+
"Some interpolation realizations with streaming data processing and CLI in Elixir"
71+
end
72+
73+
def package do
74+
[
75+
files: ["lib", "mix.exs", "LICENSE*", "README*", "version"],
76+
licenses: ["MIT"],
77+
links: %{
78+
"GitHub" => "https://github.com/maxbarsukov-itmo/functional-programming-3"
79+
},
80+
maintainers: ["Max Barsukov <maximbarsukov@bk.ru>"]
81+
]
82+
end
83+
end

mix.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
%{
2+
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
3+
"credo": {:hex, :credo, "1.7.8", "9722ba1681e973025908d542ec3d95db5f9c549251ba5b028e251ad8c24ab8c5", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "cb9e87cc64f152f3ed1c6e325e7b894dea8f5ef2e41123bd864e3cd5ceb44968"},
4+
"dialyxir": {:hex, :dialyxir, "1.4.4", "fb3ce8741edeaea59c9ae84d5cec75da00fa89fe401c72d6e047d11a61f65f70", [:mix], [{:erlex, ">= 0.2.7", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "cd6111e8017ccd563e65621a4d9a4a1c5cd333df30cebc7face8029cacb4eff6"},
5+
"erlex": {:hex, :erlex, "0.2.7", "810e8725f96ab74d17aac676e748627a07bc87eb950d2b83acd29dc047a30595", [:mix], [], "hexpm", "3ed95f79d1a844c3f6bf0cea61e0d5612a42ce56da9c03f01df538685365efb0"},
6+
"ex_check": {:hex, :ex_check, "0.16.0", "07615bef493c5b8d12d5119de3914274277299c6483989e52b0f6b8358a26b5f", [:mix], [], "hexpm", "4d809b72a18d405514dda4809257d8e665ae7cf37a7aee3be6b74a34dec310f5"},
7+
"excoveralls": {:hex, :excoveralls, "0.18.3", "bca47a24d69a3179951f51f1db6d3ed63bca9017f476fe520eb78602d45f7756", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "746f404fcd09d5029f1b211739afb8fb8575d775b21f6a3908e7ce3e640724c6"},
8+
"file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"},
9+
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
10+
"pollution": {:hex, :pollution, "0.9.2", "3f67542631071c99f807d2a8f9da799c07cd983c902f5357b9e1569c20a26e76", [:mix], [], "hexpm", "6399fd8ffd97dcc3d9d277f60542a234d644d7bcc0d48c8fda93d6be4801bac2"},
11+
"quixir": {:hex, :quixir, "0.9.3", "f01c37386b9e1d0526f01a8734a6d7884af294a0ec360f05c24c7171d74632bd", [:mix], [{:pollution, "~> 0.9.2", [hex: :pollution, repo: "hexpm", optional: false]}], "hexpm", "4f3a1fe7c82b767d935b3f7b94cf34b91ef78bb487ef256b303d77417fc7d589"},
12+
}

0 commit comments

Comments
 (0)