···11+# Used by "mix format"
22+[
33+ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
44+]
+34
.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+# Ignore .fetch files in case you like to edit your project deps locally.
1414+/.fetch
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+hobbes-*.tar
2424+2525+# Temporary files, for example, from tests.
2626+/tmp/
2727+2828+# macOS
2929+.DS_Store
3030+.DS_Store?
3131+.Spotlight-V100
3232+.Trashes
3333+ehthumbs.db
3434+Thumbs.db
+21
README.md
···11+# Hobbes
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 `hobbes` to your list of dependencies in `mix.exs`:
99+1010+```elixir
1111+def deps do
1212+ [
1313+ {:hobbes, "~> 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/hobbes>.
2121+
+18
lib/hobbes.ex
···11+defmodule Hobbes do
22+ @moduledoc """
33+ Documentation for `Hobbes`.
44+ """
55+66+ @doc """
77+ Hello world.
88+99+ ## Examples
1010+1111+ iex> Hobbes.hello()
1212+ :world
1313+1414+ """
1515+ def hello do
1616+ :world
1717+ end
1818+end
+28
mix.exs
···11+defmodule Hobbes.MixProject do
22+ use Mix.Project
33+44+ def project do
55+ [
66+ app: :hobbes,
77+ version: "0.1.0",
88+ elixir: "~> 1.16",
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
+8
test/hobbes_test.exs
···11+defmodule HobbesTest do
22+ use ExUnit.Case
33+ doctest Hobbes
44+55+ test "greets the world" do
66+ assert Hobbes.hello() == :world
77+ end
88+end