date informations after that.
=head2 RegenerateFiles
In this step, minilla will regenerate META.json, README.md and (Makefile.PL|Build.PL).
=head2 RunHooks
This step runs commands listed on `relea
s variable.
=item no_index
[no_index]
directory=['t', 'xt', 'tools']
Minilla sets META.json's no_index as C<< directory => ['t', 'xt', 'inc', 'share', 'eg', 'examples', 'author', 'builder']
> constructor.
=item Metadata
[Metadata]
x_deprecated = 1
Add arbitrary keys to C<META.json>/C<META.yml>.
=item static_install
static_install = "auto"
If C<static_install = "auto"> (
glob(sprintf("%s-*", $project->dist_name)),
'blib',
'Build',
'MYMETA.json',
'MYMETA.yml',
'_build_params',
'_build', # M::B
'Makefile
lf->main_module_path;
}
sub regenerate_files {
my $self = shift;
$self->regenerate_meta_json();
$self->regenerate_readme_md();
$self->module_maker->generate($self);
if (Cwd::getc
lf);
}
}
sub regenerate_meta_json {
my $self = shift;
my $meta = $self->cpan_meta('unstable');
$meta->save(File::Spec->catfile($self->dir, 'META.json'), {
version => '2.0'
detected. I hope META.json is already exists here\n");
$metafile = 'META.json';
} else {
cmd_perl('Build.PL');
$metafile = 'MYMETA.json';
}
} el
cmd_perl('Makefile.PL');
cmd($Config{make}, 'metafile');
$metafile = 'MYMETA.json';
} elsif (-f 'dist.ini') {
my %orig = map { $_ => 1 } glob('*/META.yml');
cm
T.SKIP.bak
MANIFEST.bak
README.pod
META.yml
README
MYMETA.json
MYMETA.yml
inc/Module/Install.pm
), glob('inc/Module/Install/*.pm')) {
version bump to be skipped by appending, `# No BumpVersion`.
This will update C<Changes>, C<META.json> and bump C<$VERSION> in your main module. These changes made by Minilla will be automatically co
figurations
Edit .gitignore and add the following lines:
/Dist-Name-*
/.build
!META.json
You're almost done, and your directory will look like:
cpanfile
lib/Dist/Name.pm
t/
so, new C<Build.PL>, C<META.json> and C<README.md> are added in your
working directory for git-friendliness. C<git add> them and commit it.
> git add Build.PL META.json README.md && git commit -m
cript like following shell script.
# Generate META.json from Module::Build or EU::MM
perl Build.PL
# Create cpanfile from META.json
mymeta-cpanfile > cpanfile
# MANIFEST, MANIFE
EST MANIFEST.SKIP
# generate META.json
minil build
git add -f META.json
# remove META.json from ignored file list
perl -i -pe 's!^META.json\n$!!' .gitignore
echo '.build/' >>
b _build_manifest_files {
my $self = shift;
my @files = (@{$self->files}, qw(LICENSE META.json META.yml MANIFEST));
if (-f File::Spec->catfile($self->dir, 'Makefile.PL')) {
push @f
$meta->save('META.yml', {
version => 1.4,
});
$meta->save('META.json', {
version => 2.0,
});
}
{
infof("Writing MANIFEST file\n")