Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add .iex.exs with common aliases/imports (#2877)

hq109687c0c1430
diff --git a/.iex.exs b/.iex.exs
new file mode 100644
index 0000000000..da773b9c14
--- /dev/null
+++ b/.iex.exs
@@ -0,0 +1,19 @@
+alias Plausible.{Repo, ClickhouseRepo, IngestRepo}
+alias Plausible.{Site, Sites, Goal, Goals, Stats}
+
+import_if_available(Ecto.Query)
+import_if_available(Plausible.Factory)
+
+Logger.configure(level: :warn)
+
+IO.puts(
+ IO.ANSI.cyan() <>
+ ~S[
+ .*$$$$$$s.
+ *$$$$$$$$$$$,
+ :$$SSS#######S *$$$$/. $$ ** $$ l$:
+ ,$$SSS#######. $$ ,$:$$ $$$$$ .S* $: $$@$* $% $$$$@s :$: s$@$s
+ .**$$$#####` $@$$$$' $l s-' $:.@* $| '$@s. $% $$ \$ :$:,$$ *$:
+ ,***/` #$ `$$ %$$%$$ *$$$#`.*sss$ $% $#$$$' %$ *$sss,
+ ,$$'] <> IO.ANSI.reset() <> "\n\n"
+)