blib/lib/Task/BeLike/JJNAPIORK.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 5 / 5 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Task::BeLike::JJNAPIORK;
2  
3 1 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 our $VERSION = '0.09';
5  
6 =head1 NAME
7  
8 Task::BeLike::JJNAPIORK - Stuff I use to start or maintain a CPAN project
9  
10 =head1 SYNOPSIS
11  
12 cpanm Task::BeLike::JJNAPIORK
13  
14 =head1 DESCRIPTION
15  
16 When I bootstrap a new project, or when someone wants to contribute to one of
17 my projects, there's a handful of modules needed which are not listed in the
18 C<Makefile.PL>. Think of these as 'meta' projects files, or like a SDK for
19 working on CPAN modules. They are not things someone who is just using the
20 module needs, just authors.
21  
22 This module is intended to bundle those together so as to make
23 it faster for me to bootstrap a new project and to make it easier for anyone
24 that wants to contribute to a project I am working on. Also, its one less
25 thing I need to do when getting started on a new project or reviving an old
26 one.
27  
28 =head1 USAGE
29  
30 Typically when I start a new project, I build my C<Makefile.PL> around the
31 L<Module::Install> ecosystem. I also use L<App::cpanminus> and a few other bits
32 to make using L<local::lib> and git easier. This means before I can even get
33 started (or a contributor started) we need some unnecessary ceremony. The
34 C<Makefile.PL> is great for managing the dependencies of a project, but it
35 can't recursively manage its own dependencies, which means that authors (NOT
36 installers) will always need to install a few bits to get started working. My
37 goal here is to reduce that effort, at least for my current workflow. Hopefully
38 you will catch some useful ideas that work for you.
39  
40 Unlike most of the distributions in the Task::BeLike namespace (see:
41 L<http://search.cpan.org/search?query=Task::BeLike>), this is not a
42 catchall of everything I love to use. This is a pretty minimum list, most
43 which have no or few dependencies with a very high rate of installation
44 success. So if you want to be like me when starting a new project, this is it!
45  
46 Typically I assume a locally installed perl (which is probably installed via
47 L<App::perlbrew>) and nothing else when starting a project. I then bootstrap a
48 L<local::lib> managed local directory of the basic dependencies and go from
49 there. I use the online version of L<App::cpanminus> to get this rolling:
50  
51 curl http://cpanmin.us/ -L | perl - -l ~/mylocal Task::BeLike::JJNAPIORK
52  
53 After that, I open a command interpreter who's environment has been fixed up to
54 find the L<local::lib> which L<App::cpanminus> has created:
55  
56 ~/mylocal/bin/localenv bash
57  
58 For more info on the C<localenv> command, see L<App::local::lib::helper> and
59 the documentation for L<local::lib>.
60  
61 Lastly, I will use the project C<Makefile.PL> to install project level
62 dependencies, start a new project, etc. It is considered a best practice to
63 always build your application as though it was destined for CPAN, even if you
64 are building an internal or proprietary application. For help creating a basic
65 project skeleton, see L<Module::Setup> and L<Module::Setup::Flavor::JJNAPIORK>.
66  
67 =head1 MODULES INSTALLED
68  
69 This L<Task> module installs the following
70  
71 =over 4
72  
73 =item L<App::cpanminus>
74  
75 Easier to install CPAN modules
76  
77 =item L<App::local::lib::helper>
78  
79 Make it easier to use L<local::lib>
80  
81 =item L<Module::Setup>
82  
83 For when I am too lazy to make my own project skeletons
84  
85 =item L<Module::Setup::Flavor::JJNAPIORK>
86  
87 If I am using L<Module::Setup> I want a flavor that makes sense to me.
88  
89 =item L<Module::Install>
90  
91 Easier to manage your project dependencies.
92  
93 =item L<Module::Install::Repository>
94  
95 Add source control repository information to META
96  
97 =item L<Module::Install::AutoManifest>
98  
99 Make and clean manifest files for me.
100  
101 =item L<Module::Install::ReadmeMarkdownFromPod>
102  
103 Make the readme file I am always forgetting to do. Markdown has become
104 popular since its very readable in a text view and if you are using Github
105 it will get parsed and rendered very nicely.
106  
107 =item L<Module::Install::ManifestSkip>
108  
109 Start you off with a sane MANIFEST.SKIP file.
110  
111 =item L<Module::Install::Homepage>
112  
113 Set or guess a reasonable homepage for your module.
114  
115 =item L<Module::Install::AutoLicense>
116  
117 Create a lICENSE file it it is missing.
118  
119 =back
120  
121 =head1 AUTHOR
122  
123 John Napiorkowski C< <<jjnapiork@cpan.org>> >
124  
125 =head1 COPYRIGHT & LICENSE
126  
127 Copyright 2011, John Napiorkowski
128  
129 This program is free software; you can redistribute it and/or modify it under
130 the same terms as Perl itself.
131  
132 =cut
133  
134 1 1;
135  
↑ Summary