Skip to content

Commit d5197dc

Browse files
committed
feat: ✨ setup mix project
1 parent 7758c6d commit d5197dc

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

mix.exs

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
defmodule FpLab2.MixProject do
2+
@moduledoc """
3+
Settings for fp_lab2 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_lab2,
13+
elixir: "~> 1.17",
14+
elixirc_paths: elixirc_paths(Mix.env()),
15+
preferred_cli_env: [
16+
# Testing
17+
espec: :test,
18+
19+
# Test coverage
20+
coveralls: :test,
21+
"coveralls.detail": :test,
22+
"coveralls.post": :test,
23+
"coveralls.html": :test,
24+
"coveralls.cobertura": :test
25+
],
26+
test_coverage: [tool: ExCoveralls],
27+
start_permanent: Mix.env() == :prod,
28+
deps: deps(),
29+
aliases: aliases(),
30+
31+
# Docs
32+
name: "functional-programming-2",
33+
source_url: "https://github.com/maxbarsukov-itmo/functional-programming-2",
34+
homepage_url: "https://github.com/maxbarsukov-itmo/functional-programming-2",
35+
36+
# Hex
37+
description: description(),
38+
package: package(),
39+
version: @version
40+
]
41+
end
42+
43+
def application do
44+
[
45+
extra_applications: [:logger]
46+
]
47+
end
48+
49+
# Specifies which paths to compile per environment.
50+
defp elixirc_paths(:test), do: ["lib", "spec/support"]
51+
defp elixirc_paths(_), do: ["lib"]
52+
53+
defp deps do
54+
[
55+
# Testing
56+
{:espec, "~> 1.9.2", only: :test},
57+
58+
# Test coverage
59+
{:excoveralls, "~> 0.18", only: :test},
60+
61+
# Linting & formatting
62+
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
63+
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
64+
{:ex_check, "~> 0.16.0", only: [:dev], runtime: false}
65+
]
66+
end
67+
68+
def aliases do
69+
[
70+
test: "espec"
71+
]
72+
end
73+
74+
def description do
75+
"RedBlack Tree on Set realization in Elixir"
76+
end
77+
78+
def package do
79+
[
80+
files: ["lib", "mix.exs", "LICENSE*", "README*", "version"],
81+
licenses: ["MIT"],
82+
links: %{
83+
"GitHub" => "https://github.com/maxbarsukov-itmo/functional-programming-2"
84+
},
85+
maintainers: ["Max Barsukov <maximbarsukov@bk.ru>"]
86+
]
87+
end
88+
end

mix.lock

+12
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.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"},
5+
"erlex": {:hex, :erlex, "0.2.7", "810e8725f96ab74d17aac676e748627a07bc87eb950d2b83acd29dc047a30595", [:mix], [], "hexpm", "3ed95f79d1a844c3f6bf0cea61e0d5612a42ce56da9c03f01df538685365efb0"},
6+
"espec": {:hex, :espec, "1.9.2", "274e501b7807c2281350fb0ff4c9610764971ca11182cd9fbd0c78159ba99902", [:mix], [{:meck, "~> 0.9", [hex: :meck, repo: "hexpm", optional: false]}], "hexpm", "934df18183486d1e4f46c477e9752c9aa1964d9b514b1b8f250d2e8e18511ce5"},
7+
"ex_check": {:hex, :ex_check, "0.16.0", "07615bef493c5b8d12d5119de3914274277299c6483989e52b0f6b8358a26b5f", [:mix], [], "hexpm", "4d809b72a18d405514dda4809257d8e665ae7cf37a7aee3be6b74a34dec310f5"},
8+
"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"},
9+
"file_system": {:hex, :file_system, "1.0.1", "79e8ceaddb0416f8b8cd02a0127bdbababe7bf4a23d2a395b983c1f8b3f73edd", [:mix], [], "hexpm", "4414d1f38863ddf9120720cd976fce5bdde8e91d8283353f0e31850fa89feb9e"},
10+
"jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
11+
"meck": {:hex, :meck, "0.9.2", "85ccbab053f1db86c7ca240e9fc718170ee5bda03810a6292b5306bf31bae5f5", [:rebar3], [], "hexpm", "81344f561357dc40a8344afa53767c32669153355b626ea9fcbc8da6b3045826"},
12+
}

version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

0 commit comments

Comments
 (0)