From 06f7696c0976c75c13435f84a2101c1203c18b95 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Wed, 17 Jul 2024 19:11:06 +0530 Subject: Initial commit --- lib/mix/tasks/vendor.ex | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/mix/tasks/vendor.ex (limited to 'lib/mix') 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 -- cgit v1.2.3-57-g22cb