forked from scottdavis/sass.ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
62 lines (55 loc) · 1.46 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
57
58
59
60
61
62
defmodule Sass.Mixfile do
use Mix.Project
def project do
[
app: :sass,
version: "3.6.4",
compilers: [:elixir_make] ++ Mix.compilers,
deps: deps(),
package: package(),
description: description(),
make_clean: ["clean"],
docs: [logo: "assets/sass.png",
extras: ["README.md"]],
name: "Sass.ex",
source_url: "https://github.com/scottdavis/sass.ex",
homepage_url: "https://github.com/scottdavis/sass.ex"
]
end
def application, do: []
defp description do
"""
Sass for elixir
"""
end
defp package do
[
maintainers: ["Scott Davis"],
licenses: ["MIT"],
contributors: ["Scott Davis"],
license: "MIT",
links: %{
GitHub: "https://github.com/scottdavis/sass.ex",
Issues: "https://github.com/scottdavis/sass.ex/issues",
Source: "https://github.com/scottdavis/sass.ex"
},
files: files()
]
end
defp files do
compiled_file = ~r/\.(a|o|so|tar|tar|gz)$/
build_dir = ~r/(_build|priv|deps)/
Path.wildcard("**/*")
|> Enum.reject(fn(file) ->
Regex.match?(compiled_file, file) || Regex.match?(build_dir, file) || file == "" || File.dir?(file)
end)
end
defp deps do
[
{:elixir_make, "~> 0.3.0"},
{:markdown, github: "devinus/markdown", only: :dev},
{:ex_doc, "~> 0.19", only: :dev},
{:inch_ex, "~> 0.2", only: :dev}
]
end
end