scan-prereqs-cpanfile - Scan prerequisite modules and generate CPANfile
% scan-prereqs-cpanfile --diff=META.json # Generate diff from META.json --diff=cpanfile # Generate diff from cpanfile --ignore=extlib --dir=/foo/bar --scan-test-requires
This script scans prerequisite modules from your code, and generate CPANfile. You can also list missing prerequisite modules.
--diff=META.json # Generate diff from META.json --diff=cpanfile # Generate diff from cpanfile
Compare the scanning result with META.json, META.yml or cpanfile. With this option, scan-prereqs-cpanfile displays missing prerequisite modules only.
--ignore=tools,extlib
Ignore some directories.
--ignore-file=ignored.regex
Ignore all files and directories matching a regex pattern listed in this file.
By default, phases without any prereqs are not dumped, By giving this option, cpanfile will have an empty block such as:
on test => sub { };
Defaults to false.
Scan test files and include the modules specified by Test::Requires as 'develop' requires.
--dir=DIRECTORY
Scan for modules in DIRECTORY (instead of '.')
Tokuhiro Matsuno
Module::CPANfile, Perl::PrereqScanner::Lite
To install App::scan_prereqs_cpanfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::scan_prereqs_cpanfile
CPAN shell
perl -MCPAN -e shell install App::scan_prereqs_cpanfile
For more information on module installation, please visit the detailed CPAN module installation guide.