Using Dist::Zilla to extract parts of your distribution
Imagine you are working on a smallish Catalyst project with an DBIx::Class model. You have been a good citizen and adhered to the principal of separation of concerns. Now you would like to extract the schema to use it anywhere else (in my case a monitoring interface that is in place and allows simple plugins). Creating a whole distribution with the related infrastructure out of the schema classes is just to much work for this one-off task. Dist::Zilla to the rescue.
Dist::Zilla can't handle multiple dists in one directory,
so you have to create an empty subdir in the project.
I'll go with
contrib/schema for now.
Put the following
Now change to the directory and run
and you should have a shiny
MyApp-Schema-0.01.tar.gz at your (not really best practice) disposal.