Mojolicious::Command::Author::generate::localplugin - Plugin generator command
version 0.06
Usage: APPLICATION generate localplugin [OPTIONS] [NAME]
mojo generate localplugin
mojo generate localplugin TestPlugin
Options:
-h, --help Show this summary of available options
Mojolicious::Command::Author::generate::localplugin generates directory structures for fully functional Mojolicious plugins.
See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default.
Mojolicious::Command::Author::generate::localplugin inherits all attributes from Mojolicious::Command and implements the following new ones.
my $description = $plugin->description;
$plugin = $plugin->description('Foo');
Short description of this command, used for the command list.
my $usage = $plugin->usage;
$plugin = $plugin->usage('Foo');
Usage information for this command, used for the help screen.
Mojolicious::Command::Author::generate::plugin inherits all methods from Mojolicious::Command and implements the following new ones.
$plugin->run(@ARGV);
Run this command.
Mojolicious, Mojolicious::Guides, http://mojolicious.org.
The distribution is contained in a Git repository, so simply clone the repository
$ git clone http://github.com/reneeb/Mojolicious-Command-generate-localplugin.git
and change into the newly-created directory.
$ cd Mojolicious-Command-generate-localplugin
The project uses Dist::Zilla
to
build the distribution, hence this will need to be installed before
continuing:
$ cpanm Dist::Zilla
To install the required prequisite packages, run the following set of commands:
$ dzil authordeps --missing | cpanm
$ dzil listdeps --author --missing | cpanm
The distribution can be tested like so:
$ dzil test
To run the full set of tests (including author and release-process tests),
add the --author
and --release
options:
$ dzil test --author --release
Renee Baecker reneeb@cpan.org
This software is copyright (c) 2018 by Renee Baecker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.