From 6e335d1712df5e5f9d2958475a5a5090fd3fa7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Di=CC=81az?= Date: Fri, 4 Dec 2015 12:15:08 +0100 Subject: [PATCH] Add Elixir scaffold --- config/config.exs | 30 ++++++++++++++++++++++++++++++ lib/ndc_ex.ex | 2 ++ mix.exs | 32 ++++++++++++++++++++++++++++++++ test/ndc_ex_sdk_test.exs | 8 ++++++++ test/test_helper.exs | 1 + 5 files changed, 73 insertions(+) create mode 100644 config/config.exs create mode 100644 lib/ndc_ex.ex create mode 100644 mix.exs create mode 100644 test/ndc_ex_sdk_test.exs create mode 100644 test/test_helper.exs diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 0000000..bccd420 --- /dev/null +++ b/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 for your application as: +# +# config :ndc_ex_sdk, key: :value +# +# And access this configuration in your application as: +# +# Application.get_env(:ndc_ex_sdk, :key) +# +# Or 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" diff --git a/lib/ndc_ex.ex b/lib/ndc_ex.ex new file mode 100644 index 0000000..257730a --- /dev/null +++ b/lib/ndc_ex.ex @@ -0,0 +1,2 @@ +defmodule NDCEx do +end diff --git a/mix.exs b/mix.exs new file mode 100644 index 0000000..4655131 --- /dev/null +++ b/mix.exs @@ -0,0 +1,32 @@ +defmodule NDCExSdk.Mixfile do + use Mix.Project + + def project do + [app: :ndc_ex_sdk, + version: "0.0.1", + elixir: "~> 1.1", + build_embedded: Mix.env == :prod, + start_permanent: Mix.env == :prod, + deps: deps] + end + + # Configuration for the OTP application + # + # Type "mix help compile.app" for more information + def application do + [applications: [:logger]] + end + + # Dependencies can be Hex packages: + # + # {:mydep, "~> 0.3.0"} + # + # Or git/path repositories: + # + # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"} + # + # Type "mix help deps" for more examples and options + defp deps do + [] + end +end diff --git a/test/ndc_ex_sdk_test.exs b/test/ndc_ex_sdk_test.exs new file mode 100644 index 0000000..cf065f5 --- /dev/null +++ b/test/ndc_ex_sdk_test.exs @@ -0,0 +1,8 @@ +defmodule NDCExTest do + use ExUnit.Case + doctest NDCEx + + test "the truth" do + assert 1 + 1 == 2 + end +end diff --git a/test/test_helper.exs b/test/test_helper.exs new file mode 100644 index 0000000..869559e --- /dev/null +++ b/test/test_helper.exs @@ -0,0 +1 @@ +ExUnit.start()