This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
forked from bbense/dir_walker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
56 lines (42 loc) · 1.31 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
defmodule DirWalker.Mixfile do
use Mix.Project
@moduledoc """
DirWalker lazily traverses one or more directory trees, depth first,
returning successive file names.
Initialize the walker using
{:ok, walker} = DirWalker.start_link(path) # or [path, path...]
Then return the next `n` path names using
paths = DirWalker.next(walker <, n \\ 1>)
Successive calls to `next` will return successive file names, until
all file names have been returned.
These methods have also been wrapped into a Stream resource.
paths = DirWalker.stream(path) # or [path,path...]
"""
def project do
[
app: :dir_walker,
version: "0.0.5",
elixir: ">= 1.0.0",
deps: deps(),
description: @moduledoc,
package: package()
]
end
def application do
[applications: [:logger]]
end
defp package do
[
files: [ "lib", "priv", "mix.exs", "README.md" ],
contributors: [ "Dave Thomas <[email protected]>", "Booker C. Bense <[email protected]>"],
licenses: [ "Same as Elixir" ],
links: %{
"GitHub" => "https://github.com/pragdave/dir_walker",
}
]
end
def deps do
[{:earmark, "~> 1.2", only: :dev},
{:ex_doc, "~> 0.15", only: :dev}]
end
end