File: Bundle.pm

package info (click to toggle)
libdist-zilla-config-slicer-perl 0.202-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: perl: 299; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package # no_index
  Dist::Zilla::Config::Slicer::Test::Bundle;
use Moose;
with qw(
  Dist::Zilla::Role::PluginBundle
  Dist::Zilla::Role::PluginBundle::Config::Slicer
);

use Dist::Zilla::Util;
sub e { Dist::Zilla::Util->expand_config_package_name($_[0]); }

sub bundle_config {
  my $name = $_[1]->{name};
  return (
    ["$name/Test::Compile"  => e('Test::Compile') => {fake_home => 1}],
    ["$name/MetaNoIndex"    => e('MetaNoIndex')   => { file => ['.secret'], directory => [qw(t xt inc)] }],
    ["$name/Scan4Prereqs"   => e('AutoPrereqs')   => { }],
    ["$name/GoodbyeGarbage" => e('PruneCruft')    => { }],
    ["$name/DontNeedThese"  => e('PruneCruft')    => { }],
  );
}

__PACKAGE__->meta->make_immutable;
1;