Dist::Zilla::Plugin::Web::PkgVersion - Embedd module version to sources
version 0.0.10
In your dist.ini:
[Web::PkgVersion] file_match = ^lib/.*\.js$ ; default, regex for file names to process file_match = ^lib/.*\.css$ ; allow several values excelude_match = ^lib/special.css$ ; default, regex for file names to exclude ; from processing excelude_match = ^lib/donotinclude.css$ ; allow several values
In your sources:
Class('Digest.MD5', { /*VERSION,*/ has : { ... } }) Class('Digest.MD5', { /*VERSION*/ })
will become after build:
Class('Digest.MD5', { VERSION : 0.01, has : { ... } }) Class('Digest.MD5', { VERSION : 0.01 })
This plugin will process the files in your distribution, matching any of the "file_match" regular expressions. Files matching any of the "excelude_match" regular expression will not be processed.
Processing will mean the following: this plugin will replace the
/*VERSION*/ /*VERSION,*/
placeholders with the distribution version.
Nickolay Platonov <nplatonov@cpan.org>
This software is copyright (c) 2015 by Nickolay Platonov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::Web, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Web
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Web
For more information on module installation, please visit the detailed CPAN module installation guide.