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
75 lines (68 loc) · 1.78 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
71
72
73
74
75
defmodule CoffeeCompiler.MixProject do
use Mix.Project
@version "0.1.5"
@description """
CoffeeScript core compiler for Elixir
"""
def project do
[
app: :coffee_compiler,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers() ++ [:yarn],
description: @description,
package: package(),
deps: deps(),
aliases: aliases(),
source_url: "https://github.com/Youimmi/coffee_compiler"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
files: [
"LICENSE",
"README.md",
"lib",
"mix.exs",
"priv/.yarn/releases",
"priv/.yarnrc.yml",
"priv/package.json",
"priv/rollup.config.js"
],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Youimmi/coffee_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},
{: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 priv/.pnp.js priv/.yarn* priv/yarn.lock",
"deps.get",
"cmd cd priv && yarn set version berry && yarn set version latest",
"compile.yarn"
]
]
end
end