This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
70 lines (62 loc) · 1.77 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
63
64
65
66
67
68
69
70
defmodule SassCompiler.Mixfile do
@moduledoc false
use Mix.Project
@version "0.1.18"
@description """
A C/C++ implementation of a Sass compiler for Elixir
"""
def project do
[
app: :sass_compiler,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make] ++ Mix.compilers(),
make_clean: ["clean"],
description: @description,
package: package(),
deps: deps(),
aliases: aliases(),
source_url: "https://github.com/Youimmi/sass_compiler"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
exclude_patterns: [".o", "libsass/lib", "libsass/.git"],
files: ["c_src", "lib", "libsass", "LICENSE", "Makefile", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Youimmi/sass_compiler"},
maintainers: ["Yuri S.", "Roman S."]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
{:elixir_make, "~> 0.6", runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix update
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
upgrade: [
"cmd rm -rf _build deps mix.lock",
"cmd cd libsass && make clean && git pull https://github.com/sass/libsass",
"deps.get"
]
]
end
end