From 9a73b4e9e4be35e35342ac8879070a0200d4bbcf Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Sat, 19 Nov 2022 15:48:09 -0800 Subject: [PATCH 1/4] feat: commit code --- Cargo.lock | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aaa373ec3..09bd290bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -572,7 +572,7 @@ dependencies = [ "chrono", "clap", "colored 2.0.0", - "convert_case", + "convert_case", "ctrlc", "dioxus-core", "dioxus-rsx", @@ -616,7 +616,6 @@ dependencies = [ "dyn-clone", "futures-channel", "futures-util", - "fxhash", "indexmap", "log", "longest-increasing-subsequence", @@ -907,15 +906,6 @@ dependencies = [ "slab", ] -[[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" -dependencies = [ - "byteorder", -] - [[package]] name = "generic-array" version = "0.14.6" From c44777003bd40282f0a7a7a04eeec8369b5b8fca Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Wed, 30 Nov 2022 09:31:42 -0800 Subject: [PATCH 2/4] fix: some warning --- src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 5d192dfc0..2caa20b90 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -8,7 +8,7 @@ use cargo_metadata::{diagnostic::Diagnostic, Message}; use indicatif::{ProgressBar, ProgressStyle}; use serde::Serialize; use std::{ - fs::{copy, create_dir_all, remove_dir_all, File}, + fs::{copy, create_dir_all, File}, io::Read, panic, path::PathBuf, @@ -241,7 +241,7 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result { }) } -pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> { +pub fn build_desktop(config: &CrateConfig, _is_serve: bool) -> Result<()> { log::info!("🚅 Running build [Desktop] command..."); let ignore_files = build_assets(config)?; From c176c9f82f98af87e9b72d77c2351e6c569b29fa Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Wed, 30 Nov 2022 13:51:23 -0800 Subject: [PATCH 3/4] feat: commit code --- README.md | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 0d4b29971..daaa8b7e9 100644 --- a/README.md +++ b/README.md @@ -2,51 +2,28 @@

📦✨ Dioxus CLI

Tooling to supercharge Dioxus projects

+**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] - -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.
+Use `dioxus create project-name` to initialize a new Dioxus project.
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. \ No newline at end of file From c36ab028b96f148975fef02c9a3adeb0ed2c55a6 Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Thu, 1 Dec 2022 09:17:03 -0800 Subject: [PATCH 4/4] fix: docs workflow --- .github/workflows/docs.yml | 2 +- README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 858e42296..d8765cac8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,7 +5,7 @@ on: paths: - docs/** branches: - - main + - master jobs: deploy: diff --git a/README.md b/README.md index daaa8b7e9..4f11ce1ac 100644 --- a/README.md +++ b/README.md @@ -37,4 +37,6 @@ 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. \ No newline at end of file +Dioxus CLI will use `Dioxus.toml` file to Identify some project info and switch some cli feature. + +You can get more configure information from [Dioxus CLI Document](https://dioxuslabs.com/cli/configure.html). \ No newline at end of file