Packages
An opinionated template to create phoenix apps, using live view and tailwind.
Retired package: Renamed - gen_template_dino_live_view
Current section
Files
Jump to
Current section
Files
template/$PROJECT_NAME$/mix.exs
defmodule <%= @project_name_camel_case %>.MixProject do
use Mix.Project
@app :<%= @project_name %>
@version "<%= @project_version %>"
def project do
[
app: @app,
version: @version,
elixir: "~> <%= @elixir_version %>",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {<%= @project_name_camel_case %>.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.4"},
{:phoenix_pubsub, "~> 1.1"},
{:phoenix_html, "~> 2.14"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.7"},
{:floki, "~> 0.25.0", only: :test},
{:gettext, "~> 0.17"},
{:jason, "~> 1.1"},
{:plug_cowboy, "~> 2.0"},
{:credo, "~> 1.2", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test}
]
end
end