--- name: install_mantine kind: function lang: bash domain: infra version: "1.0.0" purity: impure signature: "install_mantine(project_dir: string) -> void" description: "Instala Mantine UI con todas sus dependencias (@mantine/core, hooks, charts, notifications, form) y PostCSS en un proyecto frontend. Detecta package manager por lockfile. Genera postcss.config.cjs si no existe. Idempotente." tags: [mantine, frontend, install, react, ui, postcss, pendiente-usar] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "error_go_core" imports: [] params: - name: project_dir desc: "directorio del proyecto frontend con package.json" output: "sin salida; muestra progreso de instalación" tested: false tests: [] test_file_path: "" file_path: "bash/functions/infra/install_mantine.sh" --- ## Ejemplo ```bash # Instalar Mantine en un proyecto con pnpm source install_mantine.sh install_mantine ./apps/rapid_dashboards/frontend # Uso directo bash install_mantine.sh ./frontend ``` ## Notas Detecta el package manager por lockfile: pnpm-lock.yaml → pnpm, yarn.lock → yarn, package-lock.json → npm. Instala las dependencias core de Mantine v7+ y el stack PostCSS necesario. Si postcss.config.cjs ya existe no lo sobreescribe.