Dist::Zilla::Plugin::Rinci::AddPrereqs - Add prerequisites from Rinci metadata
This document describes version 0.141 of Dist::Zilla::Plugin::Rinci::AddPrereqs (from Perl distribution Dist-Zilla-Plugin-Rinci-AddPrereqs), released on 2018-06-11.
In dist.ini:
dist.ini
[Rinci::AddPrereqs]
This plugin will search Rinci metadata in all modules and add prereqs for the following:
For every dependency mentioned in deps property in function metadata, will add a prereq to Perinci::Sub::Dep::NAME.
deps
Perinci::Sub::Dep::NAME
This plugin will also search all Perinci::CmdLine-based scripts, request metadata from all local Riap URI's used by the scripts, and add prereqs for the above plus:
Add prereq for the module specified in the Riap URL. So for example if script refers to /Perinci/Examples/some_func, then a prerequisite will be added for Perinci::Examples (unless it's from the same distribution).
/Perinci/Examples/some_func
Perinci::Examples
For every entity mentioned in x.schema.entity or x.schema.element_entity in function metadata, will add a prereq to Perinci::Sub::ArgEntity::NAME.
x.schema.entity
x.schema.element_entity
Perinci::Sub::ArgEntity::NAME
For every completion mentioned in x.completion or x.element_completion in function metadata (which have the value of [NAME, ARGS]), will add a prereq to corresponding Perinci::Sub::XCompletion::NAME.
x.completion
x.element_completion
[NAME, ARGS]
Perinci::Sub::XCompletion::NAME
Please visit the project's homepage at https://metacpan.org/release/Dist-Zilla-Plugin-Rinci-AddPrereqs.
Source repository is at https://github.com/perlancar/perl-Dist-Zilla-Plugin-Rinci-AddPrereqs.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Rinci-AddPrereqs
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.
Rinci
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018, 2016, 2015 by perlancar@cpan.org.
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::Rinci::AddPrereqs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Rinci::AddPrereqs
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Rinci::AddPrereqs
For more information on module installation, please visit the detailed CPAN module installation guide.