Installs JobyKit into an existing Phoenix project.
Generates four files under lib/<your_app>_web/:
design_manifest.ex—use JobyKit.Manifestdeclaration with one example component registration and adaisy_overrides/0callback.design_previews.ex— preview functions for the registered components (one per component, suffixed_preview).live/design_system_live.ex— the kit-curated/designpage.live/custom_designs_live.ex— the host-owned/custom-designspage for composites and domain components.
Existing files are not overwritten unless you pass --force. Routes
are not auto-injected; the task prints the lines you need to add to
router.ex at the end.
Usage
mix joby_kit.install
mix joby_kit.install --force # overwrite existing files
mix joby_kit.install --web MyAppWeb # specify web module nameNext steps
After running this task, follow the printed instructions to:
- Add the two
liveroutes and the JSONgetroute to yourrouter.ex. - Restart the dev server.
- Visit
/designand/custom-designs.
See the mix joby_kit.bootstrap task for a more aggressive variant
aimed at fresh mix phx.new projects (replaces the default Phoenix
landing page). For a from-scratch app, see mix joby_kit.new.