mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 14:40:44 +00:00
feat: commit code
This commit is contained in:
parent
c44777003b
commit
c176c9f82f
1 changed files with 10 additions and 29 deletions
39
README.md
39
README.md
|
@ -2,51 +2,28 @@
|
|||
<h1>📦✨ Dioxus CLI </h1>
|
||||
<p><strong>Tooling to supercharge Dioxus projects</strong></p>
|
||||
</div>
|
||||
**dioxus-cli** (inspired by wasm-pack and webpack) is a tool for getting Dioxus projects up and running. It handles all of the build, bundling, development and publishing to simplify web development.
|
||||
|
||||
`dioxus-cli` (inspired by wasm-pack and webpack) is a tool for getting Dioxus projects up and running. It handles all of the build, bundling, development and publishing to simplify web development.
|
||||
|
||||
# Installation
|
||||
## Installation
|
||||
|
||||
## Stable
|
||||
### Install stable version
|
||||
```
|
||||
cargo install dioxus-cli
|
||||
```
|
||||
## Latest
|
||||
### Install from git repository
|
||||
```
|
||||
cargo install --git https://github.com/DioxusLabs/cli
|
||||
```
|
||||
## Developing
|
||||
### Install from local folder
|
||||
```
|
||||
cargo install --path . --debug
|
||||
```
|
||||
|
||||
Now that `dioxus` is in the path, use `dioxus --help` to see the help information.
|
||||
|
||||
```
|
||||
dioxus 0.1.2
|
||||
Build, Bundle & Ship Dioxus Apps
|
||||
|
||||
USAGE:
|
||||
dioxus [FLAGS] <SUBCOMMAND>
|
||||
|
||||
FLAGS:
|
||||
-h, --help Prints help information
|
||||
-v Enable verbose logging
|
||||
-V, --version Prints version information
|
||||
|
||||
SUBCOMMANDS:
|
||||
build Build the Rust WASM app and all of its assets
|
||||
clean Clean output artifacts
|
||||
config Dioxus config file controls
|
||||
create Init a new project for Dioxus
|
||||
help Prints this message or the help of the given subcommand(s)
|
||||
serve Build, watch & serve the Rust WASM app and all of its assets
|
||||
translate Translate some source file into Dioxus code
|
||||
```
|
||||
|
||||
## Get Started
|
||||
|
||||
Use `dioxus create project_name` to initialize a new Dioxus project. <br>
|
||||
Use `dioxus create project-name` to initialize a new Dioxus project. <br>
|
||||
|
||||
It will be cloned from the [dioxus-template](https://github.com/DioxusLabs/dioxus-template) repository.
|
||||
|
||||
|
@ -57,3 +34,7 @@ Alternatively, you can specify the template path:
|
|||
```
|
||||
dioxus create hello --template gh:dioxuslabs/dioxus-template
|
||||
```
|
||||
|
||||
## Dioxus Config File
|
||||
|
||||
Dioxus CLI will use `Dioxus.toml` file to Identify some project info and switch some cli feature.
|
Loading…
Reference in a new issue