From 056effb87cde37d335d6ba0cc32967c867b694b9 Mon Sep 17 00:00:00 2001 From: Miles Murgaw Date: Mon, 17 Jul 2023 18:24:03 -0400 Subject: [PATCH] feat: --bin docs --- packages/cli/docs/src/cmd/build.md | 9 +++++++++ packages/cli/docs/src/cmd/clean.md | 11 ++++++++++- packages/cli/docs/src/cmd/serve.md | 11 ++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/packages/cli/docs/src/cmd/build.md b/packages/cli/docs/src/cmd/build.md index 1fb892475..5fde77ef2 100644 --- a/packages/cli/docs/src/cmd/build.md +++ b/packages/cli/docs/src/cmd/build.md @@ -13,6 +13,7 @@ OPTIONS: --example [default: ""] --platform [default: "default_platform"] --release [default: false] + --bin [default: None] ``` You can use this command to build a project: @@ -37,6 +38,14 @@ dioxus build --platform desktop dioxus build --platform web ``` +## Specify workspace bin + +You can add the `--bin` option to select which crate you want Dioxus to build: + +``` +dioxus build --bin app +``` + ## Build Example You can use the `example` option to select a example to build: diff --git a/packages/cli/docs/src/cmd/clean.md b/packages/cli/docs/src/cmd/clean.md index bbb3a132e..72f2342a6 100644 --- a/packages/cli/docs/src/cmd/clean.md +++ b/packages/cli/docs/src/cmd/clean.md @@ -7,7 +7,10 @@ dioxus-clean Clean build artifacts USAGE: - dioxus clean + dioxus clean [OPTIONS] + +OPTIONS: + --bin [default: None] ``` # Example @@ -16,3 +19,9 @@ USAGE: dioxus clean ``` +# Specify workspace bin +You can add the `--bin` option to select which crate you want Dioxus to clean artifacts from: + +``` +dioxus clean --bin app +``` \ No newline at end of file diff --git a/packages/cli/docs/src/cmd/serve.md b/packages/cli/docs/src/cmd/serve.md index 41abf5350..695f153bb 100644 --- a/packages/cli/docs/src/cmd/serve.md +++ b/packages/cli/docs/src/cmd/serve.md @@ -13,7 +13,8 @@ OPTIONS: --example [default: ""] --platform [default: "default_platform"] --release [default: false] - --hot-reload [default: false]ß + --hot-reload [default: false] + --bin [default: None] ``` You can use this command to build project and start a dev server: @@ -31,6 +32,14 @@ You can use the `example` option to serve a example: dioxus serve --exmaple test ``` +## Specify workspace bin + +You can add the `--bin` option to select which crate you want Dioxus to build and serve: + +``` +dioxus serve --bin app +``` + ## Open Browser You can add the `--open` option to open system default browser when server startup: