Dist::Zilla::Plugin::Web::NPM::Package - Generate the `package.json` file, suitable for `npm` package manager
In your dist.ini:
[Web::NPM::Package] name = some-distro ; lowercased distribution name if not provided version = 1.2.3 ; version, appended with ".0" to conform semver ; (if not provided) author = Clever Guy <email@example.com> ; the 1st specified author contributor = Clever Guy2 <firstname.lastname@example.org> ; note the singular spelling contributor = Clever Guy3 <email@example.com> ; other authors from main config description = Some clever, yet compact description ; asbtract from main config homepage = http://cleverguy.org ; can recommend Dist::Zilla::Plugin::GithubMeta repository = git://git.cleverguy.org ; main = 'lib/some/distro' ; default to main module in distribution dependency = foo 1.0.0 - 2.9999.9999 ; note the singular spelling dependency = bar >=1.0.2 <2.1.2 ; engine = node >=0.1.27 <0.1.30 ; note the singular spelling engine = dode >=0.1.27 <0.1.30 ; bin = bin_name ./bin/path/to.js
Generate the "package.json" file for your distribution, based on the content of "dist.ini"
Link the dependencies (including "devDepencies" after build). Linking is not performed, if the distribution already contains the package in "node_modules"
Nickolay Platonov <firstname.lastname@example.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.