Installs PhoenixKitLegal into a Phoenix application.
Automatically patches three files in the host application:
lib/**/endpoint.ex— addsPlug.Staticto serve consent JS assetsassets/css/app.css— adds Tailwind@sourcefor legal component classesassets/js/app.js— adds consent JS import (side-effect IIFE)
Routes are wired automatically via phoenix_kit_routes().
Migrations run via mix phoenix_kit.update.
Usage
mix phoenix_kit_legal.installThis task is idempotent — safe to run multiple times.