diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-17 13:41:06 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-17 13:41:06 +0000 |
commit | 06f7696c0976c75c13435f84a2101c1203c18b95 (patch) | |
tree | 9ea52c784f4bc5013c8e8af32e82c0a497889b32 /lib/mix/tasks | |
download | mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.tar.gz mediasync-06f7696c0976c75c13435f84a2101c1203c18b95.zip |
Initial commit
Diffstat (limited to 'lib/mix/tasks')
-rw-r--r-- | lib/mix/tasks/vendor.ex | 11 |
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 |