aboutsummaryrefslogtreecommitdiff
path: root/lib/mix
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-07-20 21:22:23 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-07-20 21:22:23 +0300
commitab648fd95da8dd87188e97c041d8c87d3dc34753 (patch)
tree594877bf020cb2faf3ada165e497a95930181ad7 /lib/mix
parent3c0f267766fb08edac9a4090c254c9c414c55936 (diff)
downloadpleroma-ab648fd95da8dd87188e97c041d8c87d3dc34753.tar.gz
Fix admin FE build instructions
Diffstat (limited to 'lib/mix')
-rw-r--r--lib/mix/tasks/pleroma/frontend.ex11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/mix/tasks/pleroma/frontend.ex b/lib/mix/tasks/pleroma/frontend.ex
index 40486587d..f953fd005 100644
--- a/lib/mix/tasks/pleroma/frontend.ex
+++ b/lib/mix/tasks/pleroma/frontend.ex
@@ -115,9 +115,15 @@ defmodule Mix.Tasks.Pleroma.Frontend do
end
end
+ defp build_frontend("admin", path) do
+ {_out, 0} = System.cmd("yarn", [], cd: path)
+ {_out, 0} = System.cmd("yarn", ["build:prod"], cd: path)
+ :ok
+ end
+
defp build_frontend(_frontend, path) do
- System.cmd("yarn", [], cd: path)
- System.cmd("yarn", ["build"], cd: path)
+ {_out, 0} = System.cmd("yarn", [], cd: path)
+ {_out, 0} = System.cmd("yarn", ["build"], cd: path)
:ok
end
@@ -226,7 +232,6 @@ defmodule Mix.Tasks.Pleroma.Frontend do
File.mkdir_p!(dest)
File.cp_r!(Path.join([source, from]), dest)
post_install(frontend, dest)
- :ok
end
defp http_client do