Skip to content

Commit 8b0d316

Browse files
initial commit - mix file
0 parents  commit 8b0d316

8 files changed

+150
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/_build
2+
/cover
3+
/deps
4+
/.idea
5+
erl_crash.dump
6+
*.ez

LICENCE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2016 Stephen Moloney
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ScrivenerList
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 scrivener_list to your list of dependencies in `mix.exs`:
10+
11+
def deps do
12+
[{:scrivener_list, "~> 0.0.1"}]
13+
end
14+
15+
2. Ensure scrivener_list is started before your application:
16+
17+
def application do
18+
[applications: [:scrivener_list]]
19+
end
20+

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 :scrivener_list, key: :value
14+
#
15+
# And access this configuration in your application as:
16+
#
17+
# Application.get_env(:scrivener_list, :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"

lib/scrivener_list.ex

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

mix.exs

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
defmodule ScrivenerList.Mixfile do
2+
use Mix.Project
3+
4+
def project do
5+
[
6+
app: :scrivener_list,
7+
version: "0.0.1",
8+
elixir: "~> 1.0",
9+
build_embedded: Mix.env == :prod,
10+
start_permanent: Mix.env == :prod,
11+
description: description,
12+
package: package,
13+
deps: deps,
14+
docs: [
15+
main: Scrivener.List,
16+
readme: "README.md"
17+
]
18+
]
19+
end
20+
21+
22+
def application do
23+
[applications: [:logger]]
24+
end
25+
26+
27+
defp deps do
28+
[
29+
{:scrivener, "~> 1.0"},
30+
{:og, "~> 0.0", only: :dev},
31+
{:earmark, "~> 0.1", only: :dev},
32+
{:ex_doc, "~> 0.11", only: :dev}
33+
]
34+
end
35+
36+
37+
defp descriptions do
38+
~S"""
39+
Paginate a list.
40+
41+
Compatible with [Scrivener](https://github.com/drewolson/scrivener).
42+
"""
43+
end
44+
45+
46+
defp package do
47+
[
48+
maintainers: ["Stephen Moloney"],
49+
licenses: ["MIT"],
50+
links: %{"github" => "https://github.com/stephenmoloney/scrivener_list"},
51+
files: [
52+
"lib/scrivener_list.ex",
53+
"lib/scrivener_list",
54+
"mix.exs",
55+
"README.md"
56+
]
57+
]
58+
end
59+
60+
61+
end

test/scrivener_list_test.exs

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

test/test_helper.exs

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

0 commit comments

Comments
 (0)