Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmuskala committed Jun 4, 2017
0 parents commit 68f7e34
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
@@ -0,0 +1,19 @@
# Antidote

**TODO: Add description**

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `antidote` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:antidote, "~> 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/antidote](https://hexdocs.pm/antidote).

30 changes: 30 additions & 0 deletions config/config.exs
@@ -0,0 +1,30 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config

# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for
# 3rd-party users, it should be done in your "mix.exs" file.

# You can configure your application as:
#
# config :antidote, key: :value
#
# and access this configuration in your application as:
#
# Application.get_env(:antidote, :key)
#
# You can also configure a 3rd-party app:
#
# config :logger, level: :info
#

# It is also possible to import configuration files, relative to this
# directory. For example, you can emulate configuration per environment
# by uncommenting the line below and defining dev.exs, test.exs and such.
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env}.exs"
18 changes: 18 additions & 0 deletions lib/antidote.ex
@@ -0,0 +1,18 @@
defmodule Antidote do
@moduledoc """
Documentation for Antidote.
"""

@doc """
Hello world.
## Examples
iex> Antidote.hello
:world
"""
def hello do
:world
end
end
34 changes: 34 additions & 0 deletions mix.exs
@@ -0,0 +1,34 @@
defmodule Antidote.Mixfile do
use Mix.Project

def project do
[
app: :antidote,
version: "0.1.0",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end

def application do
[
extra_applications: []
]
end

defp deps do
[
{:decimal, "~> 1.0", optional: true},
{:benchee, "~> 0.8", only: :bench},
{:benchee_html, "~> 0.1", only: :bench},
{:poison, "~> 3.0", only: :bench},
{:jiffy, "~> 0.14", only: :bench}
]
end

defp aliases do
["bench": "run bench/run.exs"]
end
end
8 changes: 8 additions & 0 deletions mix.lock
@@ -0,0 +1,8 @@
%{"benchee": {:hex, :benchee, "0.8.0", "fe93506d05252ad82d72257f6549aab11664088a1307f26f0ab1acb172b8c35b", [:mix], [{:deep_merge, "~> 0.1", [hex: :deep_merge, repo: "hexpm", optional: false]}], "hexpm"},
"benchee_html": {:hex, :benchee_html, "0.3.1", "4f784a567f2999e28d36c13356495f455fad4fb88c66a9c2db60ab2b60d11479", [:mix], [{:benchee, "~> 0.8", [hex: :benchee, repo: "hexpm", optional: false]}, {:benchee_json, ">= 0.3.1", [hex: :benchee_json, repo: "hexpm", optional: false]}], "hexpm"},
"benchee_json": {:hex, :benchee_json, "0.3.1", "f1df8d92041cfd863d980ca40dcba1c852a705190e26cdd41732f76c6bd099d6", [:mix], [{:benchee, "~> 0.8", [hex: :benchee, repo: "hexpm", optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"decimal": {:hex, :decimal, "1.3.1", "157b3cedb2bfcb5359372a7766dd7a41091ad34578296e951f58a946fcab49c6", [:mix], [], "hexpm"},
"deep_merge": {:hex, :deep_merge, "0.1.1", "c27866a7524a337b6a039eeb8dd4f17d458fd40fbbcb8c54661b71a22fffe846", [:mix], [], "hexpm"},
"elixir_make": {:hex, :elixir_make, "0.4.0", "992f38fabe705bb45821a728f20914c554b276838433349d4f2341f7a687cddf", [:mix], [], "hexpm"},
"jiffy": {:hex, :jiffy, "0.14.11", "919a87d491c5a6b5e3bbc27fafedc3a0761ca0b4c405394f121f582fd4e3f0e5", [:rebar3], [], "hexpm"},
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}}
8 changes: 8 additions & 0 deletions test/antidote_test.exs
@@ -0,0 +1,8 @@
defmodule AntidoteTest do
use ExUnit.Case
doctest Antidote

test "the truth" do
assert 1 + 1 == 2
end
end
1 change: 1 addition & 0 deletions test/test_helper.exs
@@ -0,0 +1 @@
ExUnit.start()

0 comments on commit 68f7e34

Please sign in to comment.