Packages

Mix archive for scaffolding Corex into new Phoenix apps and Tableau sites. Install with `mix archive.install hex corex_new`, then run `mix corex.new` or `mix corex.tableau.new`. Requires the `phx_new` archive for Phoenix apps.

Current section

Files

Jump to
corex_new mix.exs
Raw

mix.exs

for path <- :code.get_path(),
Regex.match?(~r/corex_new-[\w\.\-]+\/ebin$/, List.to_string(path)) do
Code.delete_path(path)
end
defmodule Corex.New.MixProject do
use Mix.Project
@version "0.1.0-beta.2"
@phoenix_version "1.8.4"
@scm_url "https://github.com/corex-ui/corex"
@elixir_requirement "~> 1.17"
def project do
[
app: :corex_new,
test_coverage: [summary: [threshold: 84]],
start_permanent: Mix.env() == :prod,
version: @version,
phoenix_version: @phoenix_version,
elixir: @elixir_requirement,
deps: deps(),
aliases: aliases(),
package: [
maintainers: ["Karim Semmoud"],
licenses: ["MIT"],
links: %{"GitHub" => @scm_url},
files: ~w(lib templates mix.exs README.md)
],
source_url: @scm_url,
docs: docs(),
homepage_url: "https://corex.gigalixirapp.com/en",
description: """
Corex greenfield helper archive.
Provides `mix corex.new`, which runs `mix phx.new --no-install` with
forwarded Phoenix flags and renders Corex-owned files from templates
directly into the generated app. Install the `phx_new` archive first.
"""
]
end
def cli do
[preferred_envs: [docs: :docs]]
end
def application do
[
extra_applications: [:eex, :crypto, :public_key]
]
end
def deps do
[
{:jason, "~> 1.0"},
{:ex_doc, "~> 0.24", only: :dev, runtime: false}
]
end
defp docs do
[
source_url_pattern: "#{@scm_url}/blob/v#{@version}/installer/%{path}#L%{line}"
]
end
defp aliases do
[]
end
end