diff --git a/elixir/.formatter.exs b/elixir/.formatter.exs deleted file mode 100644 index d2cda26..0000000 --- a/elixir/.formatter.exs +++ /dev/null @@ -1,4 +0,0 @@ -# Used by "mix format" -[ - inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] -] diff --git a/elixir/.gitignore b/elixir/.gitignore index e3ca41c..6afa543 100644 --- a/elixir/.gitignore +++ b/elixir/.gitignore @@ -1,26 +1,10 @@ -# The directory Mix will write compiled artifacts to. /_build/ - -# If you run "mix test --cover", coverage assets end up here. /cover/ - -# The directory Mix downloads your dependencies sources to. /deps/ - -# Where third-party dependencies like ExDoc output generated docs. /doc/ - -# Ignore .fetch files in case you like to edit your project deps locally. /.fetch - -# If the VM crashes, it generates a dump, let's ignore it too. erl_crash.dump - -# Also ignore archive artifacts (built via "mix archive.build"). *.ez - -# Ignore package tarball (built via "mix hex.build"). example-*.tar - -# Temporary files, for example, from tests. /tmp/ +.elixir_ls \ No newline at end of file diff --git a/elixir/.iex.exs b/elixir/.iex.exs deleted file mode 100644 index d979c6e..0000000 --- a/elixir/.iex.exs +++ /dev/null @@ -1 +0,0 @@ -IEx.after_spawn(fn -> Example.hello() |> IO.puts() end) \ No newline at end of file diff --git a/elixir/Dockerfile b/elixir/Dockerfile index d73b590..ce3385b 100644 --- a/elixir/Dockerfile +++ b/elixir/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /app COPY . . -CMD ["iex", "-S", "mix"] \ No newline at end of file +CMD ["elixir", "hello.exs"] \ No newline at end of file diff --git a/elixir/hello.exs b/elixir/hello.exs new file mode 100644 index 0000000..4736b91 --- /dev/null +++ b/elixir/hello.exs @@ -0,0 +1 @@ +IO.puts("Hello, World!") diff --git a/elixir/lib/example.ex b/elixir/lib/example.ex deleted file mode 100644 index 0b78d2b..0000000 --- a/elixir/lib/example.ex +++ /dev/null @@ -1,18 +0,0 @@ -defmodule Example do - @moduledoc """ - Documentation for `Example`. - """ - - @doc """ - Hello world. - - ## Examples - - iex> Example.hello() - :world - - """ - def hello do - :world - end -end diff --git a/elixir/mix.exs b/elixir/mix.exs deleted file mode 100644 index aecdd65..0000000 --- a/elixir/mix.exs +++ /dev/null @@ -1,28 +0,0 @@ -defmodule Example.MixProject do - use Mix.Project - - def project do - [ - app: :example, - version: "0.1.0", - elixir: "~> 1.13", - start_permanent: Mix.env() == :prod, - deps: deps() - ] - end - - # Run "mix help compile.app" to learn about applications. - def application do - [ - extra_applications: [:logger] - ] - end - - # Run "mix help deps" to learn about dependencies. - defp deps do - [ - # {:dep_from_hexpm, "~> 0.3.0"}, - # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} - ] - end -end diff --git a/elixir/test/example_test.exs b/elixir/test/example_test.exs deleted file mode 100644 index c7659ae..0000000 --- a/elixir/test/example_test.exs +++ /dev/null @@ -1,8 +0,0 @@ -defmodule ExampleTest do - use ExUnit.Case - doctest Example - - test "greets the world" do - assert Example.hello() == :world - end -end diff --git a/elixir/test/test_helper.exs b/elixir/test/test_helper.exs deleted file mode 100644 index 869559e..0000000 --- a/elixir/test/test_helper.exs +++ /dev/null @@ -1 +0,0 @@ -ExUnit.start()