On Github preaction / Import-Base-Talk
use strict; use warnings;
use v5.24; use warnings; use feature qw( signatures ); no warnings 'experimental::signatures';
use v5.24; use warnings; use feature qw( signatures ); no warnings 'experimental::signatures'; use autodie; use List::Util qw( reduce pairgrep );
use v5.24; use warnings; use feature qw( signatures ); no warnings 'experimental::signatures'; use autodie; use List::Util qw( reduce pairgrep ); use Try::Tiny; use Log::Any;
use Moose; use Types::Standard qw( :all ); use My::Types qw( :all );
use Moose; use Types::Standard qw( :all ); use My::Types qw( :all ); use feature qw( :5.24 signatures ); no warnings 'experimental::signatures'; use autodie; use List::Util qw( reduce pairgrep ); use Try::Tiny; use Log::Any;
use Moose::Role; use Types::Standard qw( :all ); use My::Types qw( :all ); use feature qw( :5.24 signatures ); no warnings 'experimental::signatures'; use autodie; use List::Util qw( reduce pairgrep ); use Try::Tiny; use Log::Any;
ack -g --perl pm lib | xargs sed -i.bak s/Moose/Moo/g # and pray
find lib -name '*.bak' -delete
package My::Base; use parent 'Import::Base'; our @IMPORT_MODULES = ( 'strict', 'warnings', feature => [ ':5.24', 'signatures' ], '-warnings' => [ 'experimental::signatures' ], 'List::Util' => [qw( reduce pairgrep )], );
use My::Base;
Imports strict, warnings, feature :5.24, sub signatures, and List::Util
package My::Base; use parent 'Import::Base'; our %IMPORT_BUNDLES = ( Class => [ 'Moo', 'Types::Standard' => [ ':all' ], 'My::Types' => [ ':all' ], ], Role => [ 'Moo::Role', 'Types::Standard' => [ ':all' ], 'My::Types' => [ ':all' ], ], );
package My::Class; use My::Base 'Class';
Imports strict, warnings, feature :5.24, sub signatures, and List::Util.
Also imports Moo, Types::Standard, and My::Types
package My::Role; use My::Base 'Role';
Imports strict, warnings, feature :5.24, sub signatures, and List::Util.
Also imports Moo::Role, Types::Standard, and My::Types
our %IMPORT_BUNDLES = ( Test => [ 'Test::More', 'Test::Deep', 'Test::Fatal', 'Test::Differences', 'Test::Warnings', 'My::Test', ], );
use My::Base 'Test';
Imports strict, warnings, feature :5.24, sub signatures, List::Util and all those test modules
use strict; use warnings; use feature qw( :5.24 signatures ); no warnings 'experimental::signatures'; use List::Util qw( reduce pairgrep ); use Moo; use Types::Standard qw( :all ); use My::Types qw( :all ); use Try::Tiny; use Log::Any;
use My::Base 'Class';