Closed timrogers closed 1 month ago
After this change, the output looks like this:
🟣 Plasmo v0.88.0
🔴 The Browser Extension Framework
🟠CMDS | help | start | init | dev | build | package | version | -v | --version
🟡 OPTS |
init
--entry entry files (default: popup)
--with-<name> use an example template
dev
--target [string] set the target (default: chrome-mv3)
--tag [string] set the build tag (default: dev or prod depending on NODE_ENV)
--src-path [path] set the source path relative to project root (default: src)
--build-path [path] set the build path relative to project root (default: build)
--entry entry point name (default: popup)
--env relative path to top-level env file
build
--target [string] set the target (default: chrome-mv3)
--tag [string] set the build tag (default: dev or prod depending on NODE_ENV)
--src-path [path] set the source path relative to project root (default: src)
--build-path [path] set the build path relative to project root (default: build)
--entry entry point name (default: popup)
--env relative path to top-level env file
--zip zip the build output
Details
The
plasmo build
CLI supports a--zip
flag which builds your extension and then packages it into a ZIP file.This is mentioned in the Plasmo docs, but not in the in-CLI help, which I found confusing.
This adds it to the help output, in the process splitting the documentation for the
dev
andbuild
commands.Code of Conduct
Contacts
If your PR is accepted, we will award you with the
Contributor
role on Discord server.To join the server, visit: https://www.plasmo.com/s/d