chore: empty out boilerplate
This commit is contained in:
parent
c96259b996
commit
c7be19c9e1
4 changed files with 7 additions and 55 deletions
21
README.md
21
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 <https://hexdocs.pm/init>.
|
||||
|
||||
A `Task`-like process you can add to your `Supervisor` to run a function before
|
||||
other processes are started.
|
||||
|
|
16
lib/init.ex
16
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
|
||||
|
|
17
mix.exs
17
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
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
defmodule InitTest do
|
||||
use ExUnit.Case
|
||||
doctest Init
|
||||
|
||||
test "greets the world" do
|
||||
assert Init.hello() == :world
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue