[Catalyst] Dist::Zilla + Catalyst?

Matt S Trout mst at shadowcat.co.uk
Wed Apr 28 17:12:54 GMT 2010


(dropping cc to rjbs because really, wtf)

On Wed, Apr 28, 2010 at 04:03:30PM +0000, Ævar Arnfjörð Bjarmason wrote:
> It's (at least for me) mainly about removing the duplicate work that
> goes into release. The *only* thing that I do when releasing now, aside
> from editing the code, is manually updating the Changes file, and I
> usually do that as I go. Then it's just `dzil release`.
> 
> Before that I had to maintain a MANIFEST, dependencies in Makefile.PL,
> $VERSION in all my files, `git tag $VERSION` && `git push` after
> release.
> 
> In addition I had boilerplate like README and LICENSE that either had
> to be generated from something else in the distro, or copy/pasted into
> every repository.
> 
> I'm willing to bet that you have to fiddle around more than I at
> release time :)

Quite possibly. I generally edit Changes, make manifest, check it looks right,
edit $VERSION, run Makefile.PL, make disttest, check that, make dist, scp it
somewhere for other people to check it, make upload.

I'm giving serious consideration to using 'dzil release' for that purpose
instead, since I rather like that part.

I just have no interest in switching away from Makefile.PL and
Module::Install for most of that work.
 
> catalyst.pl's behavior (and not being able to change it) is the aspect
> of Catalyst that irks me the most.
> 
> When I create a project the first thing I have to do is clean the
> boilerplate the install script added. When I create models / views /
> controllers with it, I usually have to at least go edit the POD
> afterwards to make it sane.
> 
> It would be nice if someone made it pluggable so that you could easily
> set your preferred build system / starting template in a global config
> somewhere, along with an easy way to use other people's configs or
> upload your own from the CPAN.

export CATALYST_DEVEL_SHAREDIR=/path/to/my/templates

appears to be the operative way to select a different set of templates.

Though honestly, the generation stuff is there to get newbie users started.

I think I used it for about the first 6 months and then switched to starting
applications with 'mkdir' and components with 'vi lib/...'.

-- 
Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue

http://shadowcat.co.uk/blog/matt-s-trout/   http://twitter.com/shadowcat_mst/

Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst
commercial support, training and consultancy packages could help your team.



More information about the Catalyst mailing list