Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to write Perl6 modules with mi6

How to write Perl6 modules with mi6

Perl6 Entrance LT 2015.10.03

Shoichi Kaji

October 03, 2015
Tweet

More Decks by Shoichi Kaji

Other Decks in Technology

Transcript

  1. Me • Shoichi Kaji • cpan: SKAJI • perl5 modules

    • App::RemoteCommand • App::FatPacker::Simple • App::cpm
  2. • Perl6 Entrance • Today we will learn the basic

    of Perl6 • Then we will be ready to write Perl6 modules! • I’m going to talk about: • How to write Perl6 modules with mi6
  3. What is mi6? • mi6 is smilar to Perl5 Minilla

    or Dist::Zilla • But minimal, eg, no ini file • You can author your Perl6 module easily with mi6
  4. Getting started mi6 • panda --notests install App::Mi6 • mi6

    new First::Module • ls -F
 LICENSE META6.json README.md bin/ lib/ t/
  5. Diff from Perl5 • Yes, much like Perl5 • Diff:

    • There is no more Makefile.PL or Build.PL • META6.json - distribution metadata for Perl6
  6. Getting started mi6 • Impl your module in lib/First/Module.pm6 •

    Write docs in lib/First/Module.pm6 • mi6 build generate README.md from it! • Write tests in t/*.t • To run test, type: mi6 test • Declare deps in META6.json
  7. • Once you finish writing your module,
 it’s time to

    release your module! • mi6 release show you how to do this :-) • i.e. raise a PR for github.com/perl6/ ecosystem
  8. conclusion • You can author your Perl6 module with mi6

    • Distribution structure is much like Perl5 • If you finish writing it, raise a PR for github.com/perl6/ecosystem • Then we can install your module by:
 $ panda install Your::Module