; build system
[ExecDir] ; include 'bin/*' as executables
[ShareDir] ; include 'share/' for File::ShareDir
[MakeMaker] ; create Makefile.PL
eumm_version = 6.17
default_jobs = 9
; manifest (after all generated files)
[Manifest] ; create MANIFEST
; copy cpanfile back to repo dis
[CopyFilesFromBuild]
copy = Makefile.PL
; before release
[PromptIfStale] ; check if our build tools are out of date
module = Dist::Zilla
module = Dist::Zilla::PluginBundle::NGLENN
check_all_plugins = 1
[Git::Check] ; ensure all files checked in
allow_dirty = dist.ini
allow_dirty = Changes
allow_dirty = cpanfile
[CheckMetaResources] ; ensure META has 'resources' data
[CheckPrereqsIndexed] ; ensure prereqs are on CPAN
[CheckChangesHasContent] ; ensure Changes has been updated
[Git::Tag] ; tag repo with custom tag
tag_format = release-%v
; NextRelease acts *during* pre-release to write $VERSION and
; timestamp to Changes and *after* release to add a new {{$NEXT}}
; section, so to act at the right time after release, it must actually
; come after Commit_Dirty_Files but before Commit_Changes in the
; dist.ini. It will still act during pre-release as usual
[NextRelease]
[BumpVersionAfterRelease]
[Git::Commit / Commit_Changes] ; commit Changes (for new dev)
[Git::Push] ; push repo to remote
push_to = origin
[GitHub::UploadRelease] ; upload release to tag on GitHub
This distribution was forked from the DAGOLDEN plugin bundle. The
abstract should really be "Dist::Zilla configuration the way NGLENN,
who does it the way DAGOLDEN does it, does it", but that was too long.
I struggled with many complexities of writing a good dist.ini, but
found that David Golden had solved all of them.
I tweaked it slightly to fit my needs, most importantly to make
everything work on Windows. I will probably continue to pull changes
made to the originating DAGOLDEN distribution. See the changes file for
more information.
USAGE
To use this PluginBundle, just add it to your dist.ini. You can provide
the following options:
When running without git, GatherDir is used instead of Git::GatherDir.
and all git check and commit operations are disabled.
By default, versions are taken/rewritten in the source file using
RewriteVersion and BumpVersionAfterRelease. If the auto_version option
is true, the version is set by AutoVersion and munged with PkgVersion.
For auto_version the generated cpanfile is copied to the repo on build;
otherwise, Makefile.PL is copied.
This PluginBundle now supports ConfigSlicer, so you can pass in options
to the plugins used like this: