briandfoy / module-starter-addmodule Goto Github PK
View Code? Open in Web Editor NEWAdd a module to an existing distribution
Home Page: https://metacpan.org/pod/Module::Starter::AddModule
License: Other
Add a module to an existing distribution
Home Page: https://metacpan.org/pod/Module::Starter::AddModule
License: Other
HI,
sorry but I can't figure out how to really add a module?
module-starter is the same as before I installed this.
Please help.
Regards, Zdravko
I try add this module to add more module file in my repo, here is some example:
HanLei-MacBook-Pro:perl hanlei$ module-starter --module=Animal,Animal::Sheep,Animal::Cow --author="Oliver" --email=[email protected] --verbose
Created Animal
Created Animal/lib
Created Animal/lib/Animal.pm
Created Animal/lib/Animal
Created Animal/lib/Animal/Sheep.pm
Created Animal/lib/Animal/Cow.pm
Created Animal/t
Created Animal/t/pod.t
Created Animal/t/00-load.t
Created Animal/t/pod-coverage.t
Created Animal/t/manifest.t
Created Animal/xt
Created Animal/xt/boilerplate.t
Created Animal/ignore.txt
Created Animal/Makefile.PL
Created Animal/Changes
Created Animal/README
Added to MANIFEST: Changes
Added to MANIFEST: ignore.txt
Added to MANIFEST: lib/Animal.pm
Added to MANIFEST: lib/Animal/Cow.pm
Added to MANIFEST: lib/Animal/Sheep.pm
Added to MANIFEST: Makefile.PL
Added to MANIFEST: MANIFEST
Added to MANIFEST: README
Added to MANIFEST: t/00-load.t
Added to MANIFEST: t/manifest.t
Added to MANIFEST: t/pod-coverage.t
Added to MANIFEST: t/pod.t
Added to MANIFEST: xt/boilerplate.t
Created Animal/MANIFEST
Created starter directories and files
HanLei-MacBook-Pro:perl hanlei$ cd Animal/
HanLei-MacBook-Pro:Animal hanlei$ ls
Changes MANIFEST Makefile.PL README ignore.txt lib t xt
HanLei-MacBook-Pro:Animal hanlei$ module-starter --module=Animal::Horse --dist=.
Must specify an email address
at /Library/Perl/5.18/Module/Starter/App.pm line 134.
HanLei-MacBook-Pro:Animal hanlei$ module-starter --module=Animal::Horse --distro=.
Must specify an email address
at /Library/Perl/5.18/Module/Starter/App.pm line 134.
HanLei-MacBook-Pro:Animal hanlei$ module-starter --module=Animal::Horse --dist=. --email=[email protected]
. already exists. Use --force if you want to stomp on it.
Now, I'm totally lost, could you please tell me how to handle the configure file? there is no info in Module::Starter module's document and Module::Starter::AddModule module's document.
Great appreciate
Oliver
Using a module-starter/config with the plugins line:
plugins: Module::Starter::AddModule Module::Starter::PBP
or the reverse ordering fails to provide the functionality of both. Are they incompatible? The above ordering gets the correct utilization of the templating in Module::Starter::PBP, but it doesn't support adding modules to an existing distribution...
module-starter --module=My::New::SubModule --dist=.
Errors about '. already exists'. When the subclassing ordering is reversed in the config, then the module add works but it ignores the PBP templating.
I am unsure if this is a problem in module-starter's plugin loading, or Module::Starter::AddModule, or Module::Starter::PBP.
I also cannot get Module::Starter::PBP to work with Module::Starter::Smart.
I apologize if I logged this defect under the wrong distro, but I had to start somewhere =(.
Attempted to duplicate the example from the book "Intermediate Perl" 2nd edition (Page 182), using Windows 7 Professional, Service Pack 1, 64-bit and Strawberry perl 5.24.1.
Plusgin failed with an error message from Windows.
'.' is not recognized as an internal or external command,
Corion identified the problem and syphilis proposed a fix in permonks.com node_id=1219609 which solves my problem.
Change line 194
from
system( './Build', 'manifest' );
to
system( $^X, './Build', 'manifest' ); #ref perlmonks id 1219584
I have not attempted to demonstrate the problem or the fix in any other configuration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.