The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dist::Zilla::Plugin::Web::NPM::Package - Generate the `package.json` file, suitable for `npm` package manager

VERSION

version 0.0.10

SYNOPSIS

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 <cg@cleverguy.org> ; the 1st specified author

contributor     = Clever Guy2 <cg2@cleverguy.org> ; note the singular spelling
contributor     = Clever Guy3 <cg3@cleverguy.org> ; 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 

DESCRIPTION

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"

AUTHOR

Nickolay Platonov <nplatonov@cpan.org>

COPYRIGHT AND LICENSE

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.