0.9.2 • Published 4 years ago
@pika/plugin-simple-bin v0.9.2
@pika/plugin-simple-bin
A @pika/pack build plugin. Adds a simple CLI wrapper to your package and properly configures your package.json
"bin"
field to point to it. Useful for quickly adding a command line interface to your library.
Install
# npm:
npm install @pika/plugin-simple-bin --save-dev
# yarn:
yarn add @pika/plugin-simple-bin --dev
Usage
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-standard-pkg"],
["@pika/plugin-build-node"],
["@pika/plugin-simple-bin", {"bin": "my-cli"}]
]
}
}
For more information about @pika/pack & help getting started, check out the main project repo.
Result
- Adds a simple bin/CLI wrapper to your built package:
dist-node/index.bin.js
- Built for Node.js
- Loads your library, and calls an exported
run()
method with the CLI args. - Will load a bundled Node.js distribution if one exists.
- Configures the built package.json with a new
"bin"
entrypoint, so that npm knows to install your package as a CLI.
0.9.2
4 years ago
0.8.3
4 years ago
0.9.1
4 years ago
0.9.0
4 years ago
0.8.2
4 years ago
0.8.1
4 years ago
0.8.0
4 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.16
5 years ago
0.3.15
5 years ago
0.3.14
5 years ago
0.3.13
5 years ago
0.3.12
5 years ago
0.3.11
5 years ago
0.3.10
5 years ago
0.3.9
5 years ago
0.3.8
5 years ago
0.3.7
5 years ago
0.3.5
5 years ago
0.3.4
5 years ago
0.3.3
5 years ago
0.3.2
5 years ago