-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
77 lines (70 loc) · 1.92 KB
/
mix.exs
File metadata and controls
77 lines (70 loc) · 1.92 KB
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
76
77
defmodule Vize.MixProject do
use Mix.Project
@version "0.9.0"
@source_url "https://github.com/elixir-volt/vize_ex"
def project do
[
app: :vize,
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: [plt_add_apps: [:mix]],
name: "Vize",
description:
"Elixir bindings for the Vize Vue.js toolchain — compile, lint, and format Vue SFCs via Rust NIFs.",
source_url: @source_url,
homepage_url: @source_url,
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Vize" => "https://vizejs.dev"
},
files:
~w(lib native/vize_ex_nif/src native/vize_ex_nif/Cargo.toml Cargo.toml Cargo.lock .formatter.exs mix.exs README.md LICENSE checksum-*.exs)
]
end
defp docs do
[
main: "Vize",
extras: ["README.md", "LICENSE"],
source_ref: "v#{@version}"
]
end
defp aliases do
[
lint: [
"format --check-formatted",
"credo --strict",
"ex_dna",
"dialyzer",
"cmd cargo fmt --manifest-path native/vize_ex_nif/Cargo.toml -- --check",
"cmd cargo clippy --manifest-path native/vize_ex_nif/Cargo.toml -- -D warnings"
],
ci: ["lint", "cmd MIX_ENV=test mix test"]
]
end
defp deps do
[
{:rustler, "~> 0.36 or ~> 0.37", optional: true},
{:rustler_precompiled, "~> 0.8"},
{:ex_doc, "~> 0.35", only: :dev, runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_dna, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_slop, "~> 0.2", only: [:dev, :test], runtime: false}
]
end
end