feat: --bin docs
This commit is contained in:
1 parent
4b70b1ce96
commit
056effb87c
3 files changed
+29
-2
No files matched your search
@@ -13,6 +13,7 @@ OPTIONS:
|
|||||||
--example <EXAMPLE> [default: ""]
|
--example <EXAMPLE> [default: ""]
|
||||||
--platform <PLATFORM> [default: "default_platform"]
|
--platform <PLATFORM> [default: "default_platform"]
|
||||||
--release [default: false]
|
--release [default: false]
|
||||||
|
--bin [default: None]
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use this command to build a project:
|
You can use this command to build a project:
|
||||||
@@ -37,6 +38,14 @@ dioxus build --platform desktop
|
|||||||
dioxus build --platform web
|
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
|
## Build Example
|
||||||
|
|
||||||
You can use the `example` option to select a example to build:
|
You can use the `example` option to select a example to build:
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ dioxus-clean
|
|||||||
Clean build artifacts
|
Clean build artifacts
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
dioxus clean
|
dioxus clean [OPTIONS]
|
||||||
|
|
||||||
|
OPTIONS:
|
||||||
|
--bin [default: None]
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example
|
# Example
|
||||||
@@ -16,3 +19,9 @@ USAGE:
|
|||||||
dioxus clean
|
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
|
||||||
|
```
|
||||||
@@ -13,7 +13,8 @@ OPTIONS:
|
|||||||
--example <EXAMPLE> [default: ""]
|
--example <EXAMPLE> [default: ""]
|
||||||
--platform <PLATFORM> [default: "default_platform"]
|
--platform <PLATFORM> [default: "default_platform"]
|
||||||
--release [default: false]
|
--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:
|
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
|
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
|
## Open Browser
|
||||||
|
|
||||||
You can add the `--open` option to open system default browser when server startup:
|
You can add the `--open` option to open system default browser when server startup:
|
||||||
|
|||||||
Reference in new issue
Block a user