···11+# Used by "mix format"
22+[
33+ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
44+]
+24
.gitignore
···11+# The directory Mix will write compiled artifacts to.
22+/_build/
33+44+# If you run "mix test --cover", coverage assets end up here.
55+/cover/
66+77+# The directory Mix downloads your dependencies sources to.
88+/deps/
99+1010+# Where third-party dependencies like ExDoc output generated docs.
1111+/doc/
1212+1313+# Temporary files, for example, from tests.
1414+/tmp/
1515+1616+# If the VM crashes, it generates a dump, let's ignore it too.
1717+erl_crash.dump
1818+1919+# Also ignore archive artifacts (built via "mix archive.build").
2020+*.ez
2121+2222+# Ignore package tarball (built via "mix hex.build").
2323+trinity-*.tar
2424+
+21
README.md
···11+# Trinity
22+33+**TODO: Add description**
44+55+## Installation
66+77+If [available in Hex](https://hex.pm/docs/publish), the package can be installed
88+by adding `trinity` to your list of dependencies in `mix.exs`:
99+1010+```elixir
1111+def deps do
1212+ [
1313+ {:trinity, "~> 0.1.0"}
1414+ ]
1515+end
1616+```
1717+1818+Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
1919+and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
2020+be found at <https://hexdocs.pm/trinity>.
2121+
+18
lib/trinity.ex
···11+defmodule Trinity do
22+ @moduledoc """
33+ Documentation for `Trinity`.
44+ """
55+66+ @doc """
77+ Hello world.
88+99+ ## Examples
1010+1111+ iex> Trinity.hello()
1212+ :world
1313+1414+ """
1515+ def hello do
1616+ :world
1717+ end
1818+end
+28
mix.exs
···11+defmodule Trinity.MixProject do
22+ use Mix.Project
33+44+ def project do
55+ [
66+ app: :trinity,
77+ version: "0.1.0",
88+ elixir: "~> 1.19",
99+ start_permanent: Mix.env() == :prod,
1010+ deps: deps()
1111+ ]
1212+ end
1313+1414+ # Run "mix help compile.app" to learn about applications.
1515+ def application do
1616+ [
1717+ extra_applications: [:logger]
1818+ ]
1919+ end
2020+2121+ # Run "mix help deps" to learn about dependencies.
2222+ defp deps do
2323+ [
2424+ # {:dep_from_hexpm, "~> 0.3.0"},
2525+ # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
2626+ ]
2727+ end
2828+end
···11+defmodule TrinityTest do
22+ use ExUnit.Case
33+ doctest Trinity
44+55+ test "greets the world" do
66+ assert Trinity.hello() == :world
77+ end
88+end