Skip to content

Commit 941d458

Browse files
committed
New elixir project.
1 parent 432df35 commit 941d458

File tree

6 files changed

+93
-0
lines changed

6 files changed

+93
-0
lines changed

Diff for: README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ExTracker
2+
3+
**TODO: Add description**
4+
5+
## Installation
6+
7+
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
8+
9+
1. Add extracker to your list of dependencies in `mix.exs`:
10+
11+
def deps do
12+
[{:extracker, "~> 0.0.1"}]
13+
end
14+
15+
2. Ensure extracker is started before your application:
16+
17+
def application do
18+
[applications: [:extracker]]
19+
end
20+

Diff for: config/config.exs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is responsible for configuring your application
2+
# and its dependencies with the aid of the Mix.Config module.
3+
use Mix.Config
4+
5+
# This configuration is loaded before any dependency and is restricted
6+
# to this project. If another project depends on this project, this
7+
# file won't be loaded nor affect the parent project. For this reason,
8+
# if you want to provide default values for your application for
9+
# 3rd-party users, it should be done in your "mix.exs" file.
10+
11+
# You can configure for your application as:
12+
#
13+
# config :extracker, key: :value
14+
#
15+
# And access this configuration in your application as:
16+
#
17+
# Application.get_env(:extracker, :key)
18+
#
19+
# Or configure a 3rd-party app:
20+
#
21+
# config :logger, level: :info
22+
#
23+
24+
# It is also possible to import configuration files, relative to this
25+
# directory. For example, you can emulate configuration per environment
26+
# by uncommenting the line below and defining dev.exs, test.exs and such.
27+
# Configuration from the imported file will override the ones defined
28+
# here (which is why it is important to import them last).
29+
#
30+
# import_config "#{Mix.env}.exs"

Diff for: lib/extracker.ex

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defmodule ExTracker do
2+
end

Diff for: mix.exs

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
defmodule ExTracker.Mixfile do
2+
use Mix.Project
3+
4+
def project do
5+
[app: :extracker,
6+
version: "0.0.1",
7+
elixir: "~> 1.2",
8+
build_embedded: Mix.env == :prod,
9+
start_permanent: Mix.env == :prod,
10+
deps: deps]
11+
end
12+
13+
# Configuration for the OTP application
14+
#
15+
# Type "mix help compile.app" for more information
16+
def application do
17+
[applications: [:logger]]
18+
end
19+
20+
# Dependencies can be Hex packages:
21+
#
22+
# {:mydep, "~> 0.3.0"}
23+
#
24+
# Or git/path repositories:
25+
#
26+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
27+
#
28+
# Type "mix help deps" for more examples and options
29+
defp deps do
30+
[]
31+
end
32+
end

Diff for: test/extracker_test.exs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
defmodule ExTrackerTest do
2+
use ExUnit.Case
3+
doctest ExTracker
4+
5+
test "the truth" do
6+
assert 1 + 1 == 2
7+
end
8+
end

Diff for: test/test_helper.exs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ExUnit.start()

0 commit comments

Comments
 (0)