Dist::Zilla::Plugin::Web::FileHeader - Prepend header to files
version 0.0.10
In your dist.ini:
[Web::FileHeader] header_filename = build/header.txt 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 "build/header.txt":
/* My Project %v Copyright(c) 2009-%y My Company */
This plugin will prepend the content of the file specified with the "header_filename" option to all 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.
When prepending the header, the "%v" placeholder will be replaced with the version of distribution. The "%y" placeholder will be replaced with the current year.
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.