Installs JobyKit into an existing Phoenix project.
Generates five files under lib/<your_app>_web/:
design_manifest.ex—use JobyKit.Manifest, with every shipped core wrapper pre-registered and adaisy_overrides/0callback.design_previews.ex— preview functions for the registered components (one per component, suffixed_preview).components/composite_components.ex— the workedempty_statecomposite, as a precedent for extending the kit.live/design_system_live.ex— the kit-curated/designpage.live/custom_designs_live.ex— the host-owned/custom-designspage for composites and domain components.
It also patches, idempotently: AGENTS.md and CLAUDE.md (the
wrapper-contract guidance), assets/css/app.css (a Tailwind
@source so kit classes are generated), and your layout's nav.
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, which
ships as the separate joby_kit_new archive.