magewire-portman

Automate Livewire to Magewire porting with namespace renaming and augmentation merging.

262|47|Updated Oct 8, 2021
One-click install
npx skills add https://github.com/magewirephp/magewire --skill magewire-portman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magewire-portman
Source: https://github.com/magewirephp/magewire/tree/main/.claude/skills/magewire-portman
Command: npx skills add https://github.com/magewirephp/magewire --skill magewire-portman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Portman helps Magewire developers port Livewire sources into Magewire by automating namespace renaming, augmentation merging, and output generation to dist/.

Core Features & Use Cases

  • Automates Livewire to Magewire porting, including renaming namespaces and classes
  • Merges local augmentations into upstream code to customize behavior
  • Generates the final dist/ output ready for Magento integration

Quick Start

Run Portman to download, transform, and build the Magewire ported code from upstream Livewire sources.

Frequently Asked Questions about magewire-portman

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate porting Livewire code into Magewire?

To automate porting Livewire code into Magewire, configure a build pipeline that renames namespaces and merges augmentations. This process transforms upstream Livewire sources and writes the final integrated code to a dist/ directory.

What is the best way to keep Magewire in sync with upstream Livewire releases?

The best way to keep Magewire in sync with upstream Livewire releases is to run an automated porting workflow. This workflow downloads Livewire sources, applies namespace transformations, merges customizations, and generates the ported Magewire code automatically.

How do I merge custom augmentations into upstream Livewire code?

You can merge custom augmentations into upstream Livewire code by defining them in a portman.config.php file. The build pipeline processes this configuration to override and customize upstream behavior during the namespace porting phase.

Do I need a specific configuration file to port Livewire sources to Magewire?

Yes, you need a portman.config.php file to port Livewire sources to Magewire. This configuration defines the upstream source path, augmentation directory, and output directory required to execute the end-to-end build pipeline.

Can I customize Magewire behavior without modifying upstream Livewire files directly?

Yes, you can customize Magewire behavior without modifying upstream Livewire files directly. By maintaining a separate augmentation directory, the build pipeline merges your local customizations into the upstream code during the transformation process.