-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
51 lines (48 loc) · 1.51 KB
/
mix.exs
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
defmodule Rails.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix help deps" for examples and options.
defp deps do
[]
end
defp aliases do
[
"setup.activejob": [
"cmd --app active_job mix deps.get",
"cmd --app active_job mix ecto.create",
"cmd --app active_job mix ecto.migrate"
],
"setup.activestorage": [
"cmd --app active_storage mix deps.get",
"cmd --app active_storage mix ecto.create",
"cmd --app active_storage mix ecto.migrate"
],
"test.activestorage": ["cmd --app active_storage mix test --color"],
"test.activejob": ["cmd --app active_job mix test --color"],
# , "test_activestorage"]
"test.all": [
"setup.activejob",
"test.activejob",
"setup.activestorage",
"test.activestorage"
]
# test: ["deps.get", "ecto.setup", "cmd npm install --prefix assets"],
# "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
# "ecto.reset": ["ecto.drop", "ecto.setup"],
# test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
# "assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
]
end
end