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 :
If you think that not using the PBP plugin, i could just take it off the configuration file, and do all of this again.author: mascip email: example@gmail.com builder: Module::Build plugin: Module::Starter::Smart plugins: Module::Starter::PBP template_dir: C:\Dropbox\.module-starter\PBP
Now, i use module-starter
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 readC:\>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
which shows that my configuration file did its job (i changed the email address to example@gmail.com, just before starting this example).=head1 AUTHOR mascip C<< <example@gmail.com> >
Now it's time to try and use Module::Starter::Smart, which was included in the configuration file as you can see above.
It doesn't work as expected.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.
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |