From c7be19c9e1ef133a23f7abac75428abbcd1b68a1 Mon Sep 17 00:00:00 2001 From: sloane <1699281+sloanelybutsurely@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:02:18 -0400 Subject: [PATCH] chore: empty out boilerplate --- README.md | 21 ++------------------- lib/init.ex | 16 ---------------- mix.exs | 17 +++++------------ test/init_test.exs | 8 -------- 4 files changed, 7 insertions(+), 55 deletions(-) delete mode 100644 test/init_test.exs diff --git a/README.md b/README.md index 4e4b3e3..48a65bd 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,4 @@ # Init -**TODO: Add description** - -## Installation - -If [available in Hex](https://hex.pm/docs/publish), the package can be installed -by adding `init` to your list of dependencies in `mix.exs`: - -```elixir -def deps do - [ - {:init, "~> 0.1.0"} - ] -end -``` - -Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) -and published on [HexDocs](https://hexdocs.pm). Once published, the docs can -be found at . - +A `Task`-like process you can add to your `Supervisor` to run a function before +other processes are started. diff --git a/lib/init.ex b/lib/init.ex index 0324fdc..fcb7baa 100644 --- a/lib/init.ex +++ b/lib/init.ex @@ -1,18 +1,2 @@ defmodule Init do - @moduledoc """ - Documentation for `Init`. - """ - - @doc """ - Hello world. - - ## Examples - - iex> Init.hello() - :world - - """ - def hello do - :world - end end diff --git a/mix.exs b/mix.exs index 97db479..9ae4508 100644 --- a/mix.exs +++ b/mix.exs @@ -1,28 +1,21 @@ defmodule Init.MixProject do use Mix.Project + @vsn "1.0.0" + def project do [ app: :init, - version: "0.1.0", - elixir: "~> 1.17", + version: @vsn, + elixir: "~> 1.15", start_permanent: Mix.env() == :prod, - deps: 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/test/init_test.exs b/test/init_test.exs deleted file mode 100644 index 844c967..0000000 --- a/test/init_test.exs +++ /dev/null @@ -1,8 +0,0 @@ -defmodule InitTest do - use ExUnit.Case - doctest Init - - test "greets the world" do - assert Init.hello() == :world - end -end