This lesson will show how to use the bin package property to specify the CLI entry point for a module & NPM link to link your module to a local development copy.
How do I package my tool for npm so people can npm install -g it & use it? :point_right: package.bin
How can I test this locally while I develop my module? :point_right: npm link
Exercise should tell the user the name of the dummy module they'll be "creating" (the name they should put in package.json for their solution), e.g. supertool. User should create a package.json with bin set in a directory & npm link it. clijs verify from there should:
Read their package.json & confirm that it has the bin property set up properly
which supertool should yield something
That something should be a link, and following the link should point you to the file specified by package.bin
This lesson will show how to use the
bin
package property to specify the CLI entry point for a module & NPM link to link your module to a local development copy.npm
so people cannpm install -g
it & use it? :point_right:package.bin
npm link
Exercise should tell the user the name of the dummy module they'll be "creating" (the name they should put in package.json for their solution), e.g.
supertool
. User should create a package.json withbin
set in a directory &npm link
it.clijs verify
from there should:bin
property set up properlywhich supertool
should yield somethingpackage.bin