File Coverage

blib/lib/Dist/Zilla/MintingProfile/Starter.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Dist::Zilla::MintingProfile::Starter;
2              
3 1     1   3215644 use Moose;
  1         3  
  1         7  
4             with 'Dist::Zilla::Role::MintingProfile::ShareDir';
5 1     1   6838 use namespace::clean;
  1         4  
  1         8  
6              
7             our $VERSION = 'v5.0.1';
8              
9             __PACKAGE__->meta->make_immutable;
10             1;
11              
12             =head1 NAME
13              
14             Dist::Zilla::MintingProfile::Starter - A minimal Dist::Zilla minting profile
15              
16             =head1 SYNOPSIS
17              
18             # setup only needs to be run once to set up your dzil config
19             $ dzil setup
20             $ dzil new -P Starter My::New::Dist
21              
22             =head1 DESCRIPTION
23              
24             This minting profile for L<< C<dzil new>|Dist::Zilla::App::Command::new >>
25             creates a minimal new distribution consisting of a basic C<dist.ini> using the
26             L<[@Starter]|Dist::Zilla::PluginBundle::Starter> plugin bundle, and a skeleton
27             for the main module and its documentation. The author, license, and copyright
28             will be populated in the C<dist.ini> and documentation from the current dzil
29             C<config.ini>, which can be initialized using
30             L<< C<dzil setup>|Dist::Zilla::App::Command::setup >>. The version is
31             initialized statically as C<0.001>.
32              
33             =head1 CUSTOMIZING
34              
35             It's easy to create your own local version of this (or any other) minting
36             profile which you can customize as you choose. First create a new directory in
37             C<profiles> in your dzil configuration folder:
38              
39             $ mkdir -p ~/.dzil/profiles/myminter
40              
41             Then, copy the contents from the profile you want (such as the
42             C<profiles/default> directory of this distribution). Modify the copied files to
43             your liking, and then you can use it to mint a distribution.
44              
45             $ dzil new -p myminter My::New::Dist
46              
47             You can also specify a default provider (C<-P> option) or profile (C<-p>
48             option) in your dzil config (C<~/.dzil/config.ini>).
49              
50             ; config.ini
51             [%Mint]
52             profile = myminter
53              
54             ; or
55             [%Mint]
56             provider = Starter
57              
58             $ dzil new My::New::Dist # now uses the specified provider and/or profile
59              
60             If no provider or profile is configured or specified, C<dzil new> will use the
61             C<default> local profile, or the default C<[@Basic]> profile shipped with
62             L<Dist::Zilla>.
63              
64             =head1 BUGS
65              
66             Report any issues on the public bugtracker.
67              
68             =head1 AUTHOR
69              
70             Dan Book <dbook@cpan.org>
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             This software is Copyright (c) 2016 by Dan Book.
75              
76             This is free software, licensed under:
77              
78             The Artistic License 2.0 (GPL Compatible)
79              
80             =head1 SEE ALSO
81              
82             L<Dist::Zilla>, L<Dist::Zilla::PluginBundle::Starter>