« Dist/Zilla/PluginBundle/Author/ZMUGHAL.pm
↑ Summary
Dist/Zilla/PluginBundle/Author/ZMUGHAL/OrbitalTransfer.pm »
| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | package Dist::Zilla::PluginBundle::Author::ZMUGHAL::Basic; | ||
| 4 | # ABSTRACT: A plugin bundle that sets up a basic set of plugins for ZMUGHAL | ||
| 5 | $Dist::Zilla::PluginBundle::Author::ZMUGHAL::Basic::VERSION = '0.006'; | ||
| 6 | use Moose; | ||
| 7 | |||
| 8 | use Dist::Zilla::Plugin::MetaJSON (); | ||
| 9 | use Dist::Zilla::Plugin::MetaNoIndex (); | ||
| 10 | use Dist::Zilla::Plugin::AutoPrereqs (); | ||
| 11 | use Dist::Zilla::Plugin::PkgVersion (); | ||
| 12 | use Dist::Zilla::Plugin::CheckChangeLog (); | ||
| 13 | use Dist::Zilla::Plugin::GithubMeta (); | ||
| 14 | use Dist::Zilla::Plugin::PodWeaver (); | ||
| 15 | use Dist::Zilla::Plugin::MinimumPerl (); | ||
| 16 | use Dist::Zilla::Plugin::ReadmeAnyFromPod (); | ||
| 17 | use Dist::Zilla::Plugin::Git::CommitBuild (); | ||
| 18 | use Dist::Zilla::Plugin::Git (); | ||
| 19 | |||
| 20 | with qw( | ||
| 21 | Dist::Zilla::Role::PluginBundle::Easy | ||
| 22 | Dist::Zilla::Role::PluginBundle::Config::Slicer ), | ||
| 23 | 'Dist::Zilla::Role::PluginBundle::PluginRemover' => { -version => '0.103' }, | ||
| 24 | ; | ||
| 25 | |||
| 26 | sub configure { | ||
| 27 | my $self = shift; | ||
| 28 | |||
| 29 | $self->add_bundle('Filter', { | ||
| 30 | '-bundle' => '@Basic', | ||
| 31 | '-remove' => [ 'ExtraTests' ], | ||
| 32 | }); | ||
| 33 | |||
| 34 | $self->add_plugins( | ||
| 35 | qw( | ||
| 36 | MetaJSON | ||
| 37 | AutoPrereqs | ||
| 38 | PkgVersion | ||
| 39 | CheckChangeLog | ||
| 40 | GithubMeta | ||
| 41 | PodWeaver | ||
| 42 | MinimumPerl | ||
| 43 | ) | ||
| 44 | ); | ||
| 45 | |||
| 46 | $self->add_plugins( | ||
| 47 | ['MetaNoIndex' => { | ||
| 48 | directory => [ qw(t xt inc share eg examples) ], | ||
| 49 | }], | ||
| 50 | ); | ||
| 51 | |||
| 52 | $self->add_plugins( | ||
| 53 | ['ReadmeAnyFromPod' => [ | ||
| 54 | #; generate README.pod in root (so that it can be displayed on GitHub) | ||
| 55 | type => 'pod', | ||
| 56 | filename => 'README.pod', | ||
| 57 | location => 'root', | ||
| 58 | ]], | ||
| 59 | |||
| 60 | ['Git::CommitBuild' => [ | ||
| 61 | #; no build commits | ||
| 62 | branch => '', | ||
| 63 | #; release commits | ||
| 64 | release_branch => 'build/%b', | ||
| 65 | release_message => 'Release build of v%v (on %b)', | ||
| 66 | ]], | ||
| 67 | ); | ||
| 68 | |||
| 69 | $self->add_bundle( | ||
| 70 | 'Git' => { | ||
| 71 | allow_dirty => [ | ||
| 72 | 'dist.ini', | ||
| 73 | 'README' | ||
| 74 | ], | ||
| 75 | push_to => [ | ||
| 76 | 'origin', | ||
| 77 | 'origin build/master:build/master' | ||
| 78 | ] , | ||
| 79 | } | ||
| 80 | ); | ||
| 81 | } | ||
| 82 | |||
| 83 | __PACKAGE__->meta->make_immutable; | ||
| 84 | 1; | ||
| 85 | |||
| 86 | __END__ |