Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): document the --zip flag in the plasmo build CLI #1051

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions cli/plasmo/src/features/helpers/flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,26 @@ export const getFlagMap = () => {
}
}

const DEV_BUILD_COMMON_ARGS = ` --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`

export const flagHelp = `

init

--entry entry files (default: popup)
--with-<name> use an example template

dev/build
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
${DEV_BUILD_COMMON_ARGS}

build

${DEV_BUILD_COMMON_ARGS}
--zip zip the build output
`
Loading