Minill...Migrate(3pm)

πŸ“¦
version 3.1.29 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ Minilla::CLI::Migrate β€” the manual page bestie πŸ’–

okay so this is Minilla::CLI::Migrate, straight out of the User Contributed Perl Documentation, and she's here to help you migrate your existing distribution repo into a minil-ready one. no cap. πŸ¦‹


🌸 NAME 🌸

Minilla::CLI::Migrate β€” migrate existed distribution repo πŸ’…


✨ SYNOPSIS ✨

% minil migrate

that's it. that's the whole vibe. one command and we're off πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

so this sub-command migrates an existed distribution repository into a minil-ready repository. it's giving glow-up, it's giving rebrand, it's giving "your repo but she went to the salon" πŸ’–


🌈 HOW IT WORKS 🌈

ngl this module just runs a script, and that script is basically the following shell script. no magic, just steps. so let's walk through it like a little group chat, k? πŸ’œ

# Generate META.json from Module::Build or EU::MM
perl Build.PL

# Create cpanfile from META.json
mymeta-cpanfile > cpanfile

# MANIFEST, MANIFEST.SKIP is no longer needed.
git rm MANIFEST MANIFEST.SKIP

# generate META.json
minil build
git add -f META.json

# remove META.json from ignored file list
perl -i -pe 's!^META.json\n$!!' .gitignore
echo '.build/' >> .gitignore

# remove .shipit if it's exists.
if [ -f '.shipit' ]; then git rm .shipit; fi

# add things
git add .

breaking it down bestie, one comment at a time 🫢

  • first it generates META.json from Module::Build or EU::MM by running perl Build.PL ✨
  • then it creates a cpanfile from META.json with mymeta-cpanfile > cpanfile πŸ“
  • then MANIFEST and MANIFEST.SKIP? no longer needed. git rm MANIFEST MANIFEST.SKIP β€” bye girl πŸ‘‹
  • then it generates META.json with minil build and force-adds it with git add -f META.json πŸ’…
  • then it removes META.json from the ignored file list with perl -i -pe 's!^META.json\n$!!' .gitignore, and appends .build/ to .gitignore with echo '.build/' >> .gitignore 🌸
  • then, if it exists, it removes .shipit β€” if [ -f '.shipit' ]; then git rm .shipit; fi 🧚
  • and finally, it adds things: git add . ⭐
lowkey important: MANIFEST and MANIFEST.SKIP are no longer needed, and .shipit only gets removed if it exists. that's literally what the script says, so don't come for me πŸ’€

🌟 sign-off 🌟

that's the whole page, bestie β€” written up with perl v5.40.1, dated 2025-12-21, and she ate πŸ’…βœ¨ mwah, go migrate that repo πŸŽ€πŸ’–

πŸ“¦ where this page comes from