This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/mix.exs
Mitchell Hanberg 99cbb42962
SVG (#181)
This basically just adds svg elements as void and nonvoid element
aliases and it works, will test on a real proejct before releasing the
next release.

Also, fixed the weird behaviour problem by defining types for each of the ast
nodes and then referencing those types when defining the ast type.

Unclear why this works, but I imagine it has to do with the types not
being a big part of the compilation process or something.

This also uses the typed_struct library to do so. Seems pretty slick and
does what it claims it does.
2022-09-19 20:35:45 -04:00

70 lines
1.5 KiB
Elixir

defmodule Temple.MixProject do
use Mix.Project
def project do
[
app: :temple,
name: "Temple",
description: "An HTML DSL for Elixir",
version: "0.9.0",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/mhanberg/temple",
docs: docs()
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp docs() do
[
main: "Temple",
extras: [
"README.md",
"guides/getting-started.md",
"guides/your-first-template.md",
"guides/components.md",
"guides/converting-html.md",
"guides/migrating/0.8-to-0.9.md"
],
groups_for_extras: groups_for_extras()
]
end
defp groups_for_extras do
[
Guides: ~r/guides\/[^\/]+\.md/,
Migrating: ~r/guides\/migrating\/.?/
]
end
defp package do
[
maintainers: ["Mitchell Hanberg"],
licenses: ["MIT"],
links: %{github: "https://github.com/mhanberg/temple"},
files: ~w(lib priv CHANGELOG.md LICENSE mix.exs README.md .formatter.exs)
]
end
defp deps do
[
{:typed_struct, "~> 0.3"},
{:floki, ">= 0.0.0"},
{:ex_doc, "~> 0.28.3", only: :dev, runtime: false}
]
end
end