Dist::Zilla::Plugin::Depak - Pack dependencies onto scripts during build using 'depak'
This document describes version 0.21 of Dist::Zilla::Plugin::Depak (from Perl distribution Dist-Zilla-Plugin-Depak), released on 2017-07-14.
;;; the default is to include all scripts, but use below to include only some
In depak.conf in dist top-level directory, put your depak configuration.
During build, your scripts will be replaced with the packed version.
Also, you should also have a module named Something::Packed (i.e. whose name ends in ::Packed), which contains:
During build, these will be replaced with:
our %PACKED_MODULES = (...); # PACKED_MODULES
our @PACKED_DISTS = (...); # PACKED_DISTS
This plugin will replace your scripts with the packed version (that is, scripts that have their dependencies packed onto themselves). Packing will be done using depak.
If depak.conf exists in your dist's top-level directory, it will be used as the depak configuration.
In addition to replacing scripts with the packed version, it will also search for directives # PACKED_MODULES and # PACKED_DISTS in module files and replace them with %PACKED_MODULES and @PACKED_DISTS. The %PACKED_MODULES hash lists all the modules that are included in the one of the scripts. This can be useful for tools that might need it. @PACKED_DISTS array lists all the dists that are included in one of the scripts. This also can be useful for tools that might need it, like Dist::Zilla::Plugin::PERLANCAR::CheckDepDists.
There is also # PACKED_CONTENTS_POD which you can put in your script. It will be replaced with POD that list the packed modules/dists.
Explicitly include only specified script. Can be specified multiple times. The default, when no include_script configuration is specified, is to include all scripts in the distribution.
Exclude a script. Can be specified multiple times.
Will be passed to depak.
Please visit the project's homepage at https://metacpan.org/release/Dist-Zilla-Plugin-Depak.
Source repository is at https://github.com/perlancar/perl-Dist-Zilla-Plugin-Depak.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Depak
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
This software is copyright (c) 2017, 2016, 2015 by email@example.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::Depak, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.