You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
Can you make a plugin for CLI programs that are in separate files (not like @pika/plugin-simple-bin which only adds wrapper)?
So, in the source package directory, there would default index.js and arbitrary file for CLI program (like console.js). That file would then import Something from './index.js' and use Something in CLI. In the source package.json, there should be pipeline like ["@pika/plugin-simple-bin", {"entrypoints": {"my-cli": "src/console.js", "my-cli-2": "src/console2.js"}].
This would build all console files to Node.js format and add them to bin section of package.json.
Copy and build all console files for Node.js
Maybe add v8-compile-cache
Add files to bin of package.json
The text was updated successfully, but these errors were encountered:
For sure! If there's enough interest this could make sense as an official plugin, or at the very least it sounds like a good opportunity for a community-created plugin.
Can you make a plugin for CLI programs that are in separate files (not like
@pika/plugin-simple-bin
which only adds wrapper)?So, in the source package directory, there would default
index.js
and arbitrary file for CLI program (likeconsole.js
). That file would thenimport Something from './index.js'
and useSomething
in CLI. In the sourcepackage.json
, there should be pipeline like["@pika/plugin-simple-bin", {"entrypoints": {"my-cli": "src/console.js", "my-cli-2": "src/console2.js"}]
.This would build all console files to Node.js format and add them to
bin
section ofpackage.json
.v8-compile-cache
bin
ofpackage.json
The text was updated successfully, but these errors were encountered: