PhoenixThree (Phoenix Three v0.1.0)
View SourcePhoenix Three provides Mix tasks for managing Three.js dependencies in Phoenix projects.
Installation
Add phoenix_three
to your list of dependencies in mix.exs
:
def deps do
[
{:phoenix_three, "~> 0.1.0", only: :dev, runtime: false}
]
end
Usage
Download Three.js files and set up imports:
mix threejs.setup
Available Tasks
mix threejs.setup
- Download Three.js files and configure app.jsmix threejs.download
- Download Three.js files onlymix threejs.configure
- Configure app.js imports only