Repository: Wikunia/Javis.jl (julia)

Issue:
Auto-Export of Luxor Functions
Based on conversation with @Wikunia , the manual importing of `Luxor` is somewhat of a pain for each file written using Javis. @thofma suggested a great idea based on [Hecke.jl](https://github.com/thofma/Hecke.jl/blob/da91ba6cd304e4399a272931b022d5d94cb407b2/src/Hecke.jl#L82) to auto-export each function in Luxor automatically within Javis. Let's get this implemented for documentation and for #44 .

Pull request description:
Implements #70 -- let me know if there is anything else you want to tweak from this!

Patch:
diff --git a/src/Javis.jl b/src/Javis.jl
index 88b79eb91..30831e996 100644
--- a/src/Javis.jl
+++ b/src/Javis.jl
@@ -742,6 +742,15 @@ function perform_action(action, video, frame, origin_matrix)
     end
 end
 
+const LUXOR_DONT_EXPORT = [:boundingbox, :Boxmaptile, :Sequence]
+
+# Export each function from Luxor
+for func in names(Luxor; imported=true)
+    if !(func in LUXOR_DONT_EXPORT)
+        eval(Meta.parse("import Luxor." * string(func)))
+        eval(Expr(:export, func))
+    end
+end
 
 export javis, latex
 export Video, Action, BackgroundAction, Rel


Test patch:
diff --git a/test/runtests.jl b/test/runtests.jl
index 3b79babbd..dfca64e30 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -1,7 +1,6 @@
 using Images
 using Javis
 using LaTeXStrings
-using Luxor
 using ReferenceTests
 using Test