2026-05-09 19:49:01 +02:00
|
|
|
defmodule Centralcloud.MixProject do
|
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
|
|
def project do
|
|
|
|
|
[
|
|
|
|
|
apps_path: "apps",
|
|
|
|
|
version: "0.1.0",
|
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2026-05-09 20:45:22 +02:00
|
|
|
deps: deps(),
|
2026-05-13 01:30:33 +02:00
|
|
|
aliases: aliases(),
|
2026-05-09 20:45:22 +02:00
|
|
|
releases: [
|
|
|
|
|
centralcloud_my: [
|
|
|
|
|
applications: [centralcloud_core: :permanent, centralcloud_my: :permanent],
|
|
|
|
|
overlays: "rel/overlays",
|
2026-05-13 01:30:33 +02:00
|
|
|
include_erts: System.get_env("INCLUDE_ERTS", "true") == "true",
|
2026-05-09 20:45:22 +02:00
|
|
|
steps: [:assemble, :tar]
|
2026-05-11 13:06:21 +02:00
|
|
|
],
|
|
|
|
|
centralcloud_staff: [
|
|
|
|
|
applications: [centralcloud_core: :permanent, centralcloud_staff: :permanent],
|
|
|
|
|
overlays: "rel/overlays",
|
2026-05-13 01:30:33 +02:00
|
|
|
include_erts: System.get_env("INCLUDE_ERTS", "true") == "true",
|
2026-05-11 13:06:21 +02:00
|
|
|
steps: [:assemble, :tar]
|
2026-05-09 20:45:22 +02:00
|
|
|
]
|
|
|
|
|
]
|
2026-05-09 19:49:01 +02:00
|
|
|
]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
defp deps do
|
2026-05-13 01:30:33 +02:00
|
|
|
[
|
|
|
|
|
{:tailwind, "~> 0.2", runtime: false}
|
|
|
|
|
]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
defp aliases do
|
|
|
|
|
[
|
|
|
|
|
"assets.deploy": [
|
|
|
|
|
"tailwind staff --minify",
|
|
|
|
|
"tailwind my --minify"
|
|
|
|
|
]
|
|
|
|
|
]
|
2026-05-09 19:49:01 +02:00
|
|
|
end
|
|
|
|
|
end
|