summaryrefslogtreecommitdiff
path: root/lib/mix/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mix/tasks')
-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