Module-Starter-TOSHIOITO
view release on metacpan or search on metacpan
lib/Module/Starter/TOSHIOITO.pm view on Meta::CPAN
return %t_files;
}
sub _t_header {
my ($self) = @_;
return <<"EOH";
use $self->{minperl};
use strict;
use warnings;
use Test::More;
EOH
}
sub _ensure_dir {
my ($self, @dirpaths) = @_;
my $dir = File::Spec->catdir($self->{basedir}, @dirpaths);
if (not -d $dir) {
local @ARGV = $dir;
mkpath();
$self->progress("Created $dir");
}
}
sub ignores_guts {
my ($self, $type) = @_;
return $self->SUPER::ignores_guts($type) if $type ne "manifest";
return <<'HERE'
^_
^\.
^MYMETA\.yml$
^MYMETA\.json$
^_build
^Build$
^blib
^MANIFEST\.
^README\.pod$
# Avoid version control files.
\bRCS\b
\bCVS\b
,v$
\B\.svn\b
\b_darcs\b
# (.git only in top-level, hence it's blocked above)
# Avoid temp and backup files.
~$
\.tmp$
\.old$
\.bak$
\..*?\.sw[po]$
\#$
\b\.#
# avoid OS X finder files
\.DS_Store$
# ditto for Windows
\bdesktop\.ini$
\b[Tt]humbs\.db$
# Avoid patch remnants
\.orig$
\.rej$
HERE
}
1;
__END__
=pod
=head1 NAME
Module::Starter::TOSHIOITO - create a module like TOSHIOITO does
=head1 SYNOPSIS
In your ~/.module-starter/config
author: YOUR NAME
email: YOUR@EMAIL.ADDR
plugins: Module::Starter::TOSHIOITO
github_user_name: YOUR_GITHUB_USER_NAME
Then
$ module-starter --mb --module Foo::Bar
=head1 DESCRIPTION
This is a simple L<Module::Starter> plugin that makes it create module templates that I like.
This is based on L<Module::Starter::Simple>, the default plugin for L<Module::Starter>.
The difference from the base is:
=over
=item *
It assumes the module is hosted on L<Github|https://github.com>.
Users are advised to report issues to Github's issue tracker.
=item *
C<github_user_name> config parameter is mandatory. It is your Github user name.
=item *
If the builder is L<Module::Build>, it uses L<Module::Build::Prereqs::FromCPANfile> and generates a template C<cpanfile>.
=item *
C<ignores_type> config parameter is "C<< git manifest >>" by default.
=item *
C<verbose> config parameter is true by default.
( run in 2.222 seconds using v1.01-cache-2.11-cpan-d7f47b0818f )