summaryrefslogtreecommitdiff
path: root/lib/mix/tasks/vendor.ex
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-17 13:41:06 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-17 13:41:06 +0000
commit06f7696c0976c75c13435f84a2101c1203c18b95 (patch)
tree9ea52c784f4bc5013c8e8af32e82c0a497889b32 /lib/mix/tasks/vendor.ex
downloadmediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar
mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar.gz
mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.zip
Initial commit
Diffstat (limited to 'lib/mix/tasks/vendor.ex')
-rw-r--r--lib/mix/tasks/vendor.ex11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/mix/tasks/vendor.ex b/lib/mix/tasks/vendor.ex
new file mode 100644
index 0000000..1f64236
--- /dev/null
+++ b/lib/mix/tasks/vendor.ex
@@ -0,0 +1,11 @@
+defmodule Mix.Tasks.Vendor do
+ use Mix.Task
+
+ @impl Mix.Task
+ def run([]) do
+ {_, 0} = System.cmd("npm", ~w(install))
+ File.cp_r!("node_modules/video.js/dist", "priv/static/video.js")
+ File.cp_r!("node_modules/video.js/LICENSE", "priv/static/video.js/LICENSE")
+ nil
+ end
+end