Dist-Zilla-PluginBundle-GEEKRUTH
view release on metacpan or search on metacpan
lib/Dist/Zilla/PluginBundle/GEEKRUTH.pm view on Meta::CPAN
package Dist::Zilla::PluginBundle::GEEKRUTH;
use Modern::Perl;
our $VERSION = '4.0101'; # VERSION
our $AUTHORITY = 'cpan:GEEKRUTH'; # AUTHORITY
# ABSTRACT: Be like GeekRuthie when you build your dists
use Moose;
use Dist::Zilla;
with qw/
Dist::Zilla::Role::PluginBundle::Easy
Dist::Zilla::Role::PluginBundle::Config::Slicer
Dist::Zilla::Role::PluginBundle::PluginRemover
/;
use Type::Tiny;
use Types::Standard qw/ Str ArrayRef /;
sub version_range {
my ( $from, $to ) = @_;
return join ',', grep { not $_ % 2 } $from .. $to;
}
has badge => (
isa => 'ArrayRef',
is => 'ro',
default => sub { [] },
);
sub configure {
my ($self) = @_;
my $arg = $self->payload;
my $release_branch = $arg->{release_branch} || 'releases';
my $dev_branch = $arg->{dev_branch} || 'main';
my $upstream = $arg->{upstream} || 'origin';
my $help_wanted = $arg->{help_wanted};
my %mb_args;
$mb_args{mb_class} = $arg->{mb_class} if $arg->{mb_class};
$self->config_slice('mb_class');
my $builder = $arg->{builder} || 'MakeMaker';
# ------------------------------------------------------------------
# Source gathering and file selection
# ------------------------------------------------------------------
$self->add_plugins(
[
'Git::GatherDir' => {
exclude_filename => [
'Makefile.PL',
'Build.PL',
'META.json',
'META.yml',
'MANIFEST',
'cpanfile',
],
},
],
);
( run in 1.772 second using v1.01-cache-2.11-cpan-eb134014566 )