| 1 | package Dist::Zilla::PluginBundle::JAITKEN; | ||
| 2 | |||
| 3 | # ABSTRACT: Build your distributions like JAITKEN | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Dist::Zilla::PluginBundle::JAITKEN - Build your Dist::Zilla distributions like JAITKEN | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | This is the L<Dist::Zilla> configuration that I use. | ||
| 12 | |||
| 13 | It is exactly equivalent to | ||
| 14 | |||
| 15 | [VersionFromModule] | ||
| 16 | [NameFromDirectory] | ||
| 17 | |||
| 18 | [AutoPrereqs] | ||
| 19 | |||
| 20 | [MinimumPerl] | ||
| 21 | |||
| 22 | [MetaJSON] | ||
| 23 | |||
| 24 | [ReadmeAnyFromPod] | ||
| 25 | type = markdown | ||
| 26 | filename = README | ||
| 27 | location = build | ||
| 28 | |||
| 29 | [PruneFiles] | ||
| 30 | filenames = dist.ini | ||
| 31 | filenames = README.markdown | ||
| 32 | |||
| 33 | [GithubMeta] | ||
| 34 | issues = 1 | ||
| 35 | |||
| 36 | [MinimumPrereqs] | ||
| 37 | minimum_year = 2007 | ||
| 38 | |||
| 39 | [PrereqsClean] | ||
| 40 | minimum_perl = v5.10 | ||
| 41 | |||
| 42 | [@Filter] | ||
| 43 | -bundle = @Basic | ||
| 44 | -remove = Readme | ||
| 45 | |||
| 46 | |||
| 47 | =head1 USAGE | ||
| 48 | |||
| 49 | In dist.ini | ||
| 50 | |||
| 51 | [@JAITKEN] | ||
| 52 | |||
| 53 | And that's it. | ||
| 54 | |||
| 55 | The module needs to be under version control at GitHub | ||
| 56 | in order for L<Dist::Zilla::Plugin::GithubMeta> to extract relevant | ||
| 57 | info from your local git repo. | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||
| 61 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 62 | |||
| 63 | 0 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 64 | with 'Dist::Zilla::Role::PluginBundle::Easy'; | ||
| 65 | |||
| 66 | our $VERSION = '0.1.6'; | ||
| 67 | |||
| 68 | sub configure { | ||
| 69 | my $self = shift; | ||
| 70 | |||
| 71 | $self->add_plugins( | ||
| 72 | ['AutoPrereqs'], | ||
| 73 | ['MetaJSON'], | ||
| 74 | ['MinimumPerl'], | ||
| 75 | ['VersionFromModule'], | ||
| 76 | ['NameFromDirectory'], | ||
| 77 | [ | ||
| 78 | ReadmeAnyFromPod => { | ||
| 79 | type => 'markdown', | ||
| 80 | filename => 'README', | ||
| 81 | location => 'build', | ||
| 82 | } | ||
| 83 | ], [ | ||
| 84 | PruneFiles => { | ||
| 85 | filenames => ['dist.ini', 'README.markdown'] | ||
| 86 | } | ||
| 87 | ], [ | ||
| 88 | GithubMeta => { | ||
| 89 | issues => 1, | ||
| 90 | } | ||
| 91 | ], [ | ||
| 92 | MinimumPrereqs => { | ||
| 93 | minimum_year => 2007, | ||
| 94 | } | ||
| 95 | ], [ | ||
| 96 | PrereqsClean => { | ||
| 97 | minimum_perl => 'v5.10', | ||
| 98 | } | ||
| 99 | ], | ||
| 100 | ); | ||
| 101 | |||
| 102 | $self->add_bundle('@Filter', { | ||
| 103 | '-bundle' => '@Basic', | ||
| 104 | '-remove' => ['Readme'], | ||
| 105 | }); | ||
| 106 | } | ||
| 107 | |||
| 108 | 1; | ||
| 109 | |||
| 110 | =head1 SEE ALSO | ||
| 111 | |||
| 112 | L<Dist::Zilla>, L<Dist::Zilla::Role::PluginBundle::Easy>, | ||
| 113 | L<Dist::Zilla::Plugin::AutoPrereqs>, L<Dist::Zilla::Plugin::GithubMeta>, | ||
| 114 | L<Dist::Zilla::Plugin::MetaJSON>, L<Dist::Zilla::Plugin::MinimumPerl>, | ||
| 115 | L<Dist::Zilla::Plugin::MinimumPrereqs>, L<Dist::Zilla::Plugin::PrereqsClean>, | ||
| 116 | L<Dist::Zilla::Plugin::PruneFiles>, L<Dist::Zilla::Plugin::ReadmeAnyFromPod>, | ||
| 117 | L<Dist::Zilla::Plugin::VersionFromModule>, L<Dist::Zilla::Plugin::NameFromDirectory>, | ||
| 118 | L<Dist::Zilla::PluginBundle::Basic>, L<Dist::Zilla::PluginBundle::Filter> | ||
| 119 | |||
| 120 | |||
| 121 | =head1 AUTHOR | ||
| 122 | |||
| 123 | James Aitken <jaitken@cpan.org> | ||
| 124 | |||
| 125 | |||
| 126 | =head1 COPYRIGHT AND LICENSE | ||
| 127 | |||
| 128 | This software is copyright (c) 2012 by James Aitken. | ||
| 129 | |||
| 130 | This is free software; you can redistribute it and/or modify it under | ||
| 131 | the same terms as the Perl 5 programming language system itself. | ||
| 132 | |||
| 133 | =cut | ||