Thank you, i will try and use Module::Starter::Plugin or its Template API. The POD documentation is quite short, i'll try and tweak it around.

I will try and use Module::Starter::Smart again, right now, and comment what i'm doing (on a Windows XP OS).

First of all, here is my C:/Dropbox/.module-starter/config file :

author: mascip email: example@gmail.com builder: Module::Build plugin: Module::Starter::Smart plugins: Module::Starter::PBP template_dir: C:\Dropbox\.module-starter\PBP

If you think that not using the PBP plugin, i could just take it off the configuration file, and do all of this again.

Now, i use module-starter

C:\>module-starter --distro=My-Example --module=My::Example::Class --m +odule=Other::Example configdir : C:\Dropbox\.module-starter configdir : C:\Dropbox\.module-starter Added to MANIFEST: Build.PL Added to MANIFEST: Changes Added to MANIFEST: ignore.txt Added to MANIFEST: lib/My/Example/Class.pm Added to MANIFEST: lib/Other/Example.pm Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00.load.t Added to MANIFEST: t/perlcritic.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created starter directories and files
Now my distro is created, and i check in the C:/My-Example/My/Example/Class.pm file that the boilerplate is as expected. It is. In the code i can read
=head1 AUTHOR mascip C<< <example@gmail.com> >
which shows that my configuration file did its job (i changed the email address to example@gmail.com, just before starting this example).

Now it's time to try and use Module::Starter::Smart, which was included in the configuration file as you can see above.

C:\>module-starter --distro=My-Example --module=My::Example::TheNewCla +ss configdir : C:\Dropbox\.module-starter configdir : C:\Dropbox\.module-starter My-Example already exists. Use --force if you want to stomp on it.
It doesn't work as expected.

Now i try it the other way around, giving the --module argument before --ditro, and obtain the same result :

C:\>module-starter --distro=My-Example --module=My::Example::TheNewCla +ss configdir : C:\Dropbox\.module-starter configdir : C:\Dropbox\.module-starter My-Example already exists. Use --force if you want to stomp on it.

And finally, if i go in my distro's directory, and try to create a module, then a get a whole new distro inside my first distro:

C:\>module-starter --distro=My-Example --module=My::Example::TheNewCla +ss configdir : C:\Dropbox\.module-starter configdir : C:\Dropbox\.module-starter My-Example already exists. Use --force if you want to stomp on it.

Did i do anything wrong?


In reply to Re^2: Adding a class to a module - Can Module::Starter or Dist::Zilla help? by mascip
in thread Adding a class to a module - Can Module::Starter or Dist::Zilla help? by mascip

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.