Summary: This sets up a basic UI for a bundling command. It checks for the source, creates an output directory if necessary and automatically creates an output name, so it should hopefully be as intuitive as possible. There are plenty of potential error case that I don't directly handle. That's something we may want to consider in the future. Reviewed By: nikoant Differential Revision: D19973889 fbshipit-source-id: 5638ed0e45187c5ad567b9e2559c8befe52c6085
flipper-pkg
flipper-pkg is a work-in-progress tool for bundling and publishing
Flipper plugins.
Usage
$ npm install -g mycli
$ mycli COMMAND
running command...
$ mycli (-v|--version|version)
mycli/0.0.0 darwin-x64 node-v12.14.0
$ mycli --help [COMMAND]
USAGE
$ mycli COMMAND
...
Commands
mycli hello [FILE]
describe the command here
USAGE
$ mycli hello [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
EXAMPLE
$ mycli hello
hello world from ./src/hello.ts!
See code: src/commands/hello.ts
mycli help [COMMAND]
display help for mycli
USAGE
$ mycli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help