Packages
phoenix_three
0.1.0
A Mix task for downloading Three.js assets and setting up imports in Phoenix projects. Automatically downloads Three.js files from CDN and configures app.js imports.
Current section
Files
Jump to
Current section
Files
lib/setup.ex
defmodule Mix.Tasks.Threejs.Setup do
@moduledoc """
Complete Three.js setup for Phoenix projects.
Downloads Three.js files from CDN and configures app.js imports.
## Usage
mix threejs.setup
## Options
--version VERSION Specify Three.js version (default: 0.177.0)
--force Overwrite existing files and imports
"""
use Mix.Task
@shortdoc "Downloads Three.js files and sets up imports in Phoenix projects"
def run(args) do
Mix.Task.run("threejs.download", args)
Mix.Task.run("threejs.configure", args)
end
end