Last active
December 19, 2015 19:09
-
-
Save holybit/6003994 to your computer and use it in GitHub Desktop.
Goal: Use Dist::Zilla to create a Task:: dist that will install only the applications Prereqs and not install the actual application code - for example files in foo/bin/*.pl and foo/lib/*.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The below yeilds a Task::RP::Foo that does contain the application code in Foo/bin and Foo/lib. How to elimiate the lib and bin dirs and their files from the dist and still get AutoPrereqs? | |
name = Task-RP-Foo | |
author = Joe Crotty <[email protected]> | |
license = None | |
copyright_holder = Return Path, Inc. | |
copyright_year = 2013 | |
version = 1.4 | |
[FileFinder::ByName / RPModules ] | |
dir = lib | |
match = \/RP\/.*\.pm$ | |
[@Filter] | |
-bundle = @Basic | |
-remove = GatherDir | |
-remove = Readme | |
-remove = UploadToCPAN | |
[GatherDir] | |
exclude_filename = apprc | |
exclude_filename = README | |
exclude_match = ^app/ | |
exclude_match = ^build/ | |
exclude_match = ^code_tools/ | |
exclude_match = ^conf/ | |
exclude_match = ^data/ | |
exclude_match = ^init.d/ | |
exclude_match = ^log/ | |
exclude_match = ^maildir/ | |
exclude_match = ^svc/ | |
exclude_match = ^t/ | |
exclude_match = ^var/ | |
[AutoPrereqs] | |
[Prereqs] | |
perl = v5.14.2 | |
;App::Ack = 0 | |
Code::TidyAll = 0 | |
Data::Printer = 0 | |
;DBD::Oracle = 1.62 | |
;DBI = 1.627 | |
Devel::NYTProf = 0 | |
Perl::Critic = 0 | |
Perl::Tidy = 0 | |
TAP::Formatter::JUnit = 0 | |
[RemovePrereqsMatching] | |
remove_matching = ^RP::.*$ | |
[MetaJSON] | |
[OurPkgVersion] | |
;finder = RPModules | |
[TaskWeaver] | |
[PodSyntaxTests] | |
[Clean] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment