loctry v1.7.0
About The Project
This is a CLI for improve the local library testing experience. Under the hood this CLI uses npm pack for generate a tarball equals the sended to the npm registry to allow you test if the proejct is correcty configurated.
NOTE: this requires at least NPM 7+
Usage
Install the loctry globaly
npm install -g loctryEnter in your pacakge directory and run
loctry publishNOTE: This command needs to be run in the same dir as the
package.json
This command will pack and send your package tarball to the .loctry folder to be avaiable to be installed in others projects.
NOTE: Do not modify
.loctrydir manually. This is an internal API
To install the package enter in the project directory and run
loctry install <package-name>This command will install your local package in the current project
Commands
Publish
Pack and send your package tarball to the .loctry folder to be avaiable to be installed in others projects.
Unpublish
Remove your package tarball from the .loctry folder. The package cannot be installed in others projects after this.
Ex:
loctry unpublish <package-name>Install
Install your local package in the current project
Ex:
loctry install <package-name>List
List available packages in the local registry
Info
Show info stored about the given package
Ex:
loctry info <package-name>LICENSE
This project is under MIT licence. See the archive LICENSE to more details.