From 4dcfe662537be9f7678a1cc64dfcde6fb6ab7789 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 20 Jan 2021 12:12:48 -0500 Subject: [PATCH] Feat: update spelling and changes to cli --- .vscode/spellright.dict | 1 + examples/router.rs | 2 +- packages/cli/Cargo.toml | 4 ++++ packages/cli/README.md | 30 +++++++++++++++--------------- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.vscode/spellright.dict b/.vscode/spellright.dict index 6c41ec33c..0e62c3486 100644 --- a/.vscode/spellright.dict +++ b/.vscode/spellright.dict @@ -2,3 +2,4 @@ bearly Clippy tide_ssr Liveview +Dioxus diff --git a/examples/router.rs b/examples/router.rs index 8f7a4fa8a..4d101d64f 100644 --- a/examples/router.rs +++ b/examples/router.rs @@ -3,7 +3,7 @@ use dioxus::prelude::*; fn main() { - let mut app = App::new(); + // let mut app = App::new(); // app.at(c) } diff --git a/packages/cli/Cargo.toml b/packages/cli/Cargo.toml index 9546ab45f..293b7371a 100644 --- a/packages/cli/Cargo.toml +++ b/packages/cli/Cargo.toml @@ -24,3 +24,7 @@ notify = "5.0.0-pre.3" futures = "0.3.8" rjdebounce = "0.2.1" tempfile = "3.1.0" + +[[bin]] +path = "src/main.rs" +name = "dioxus" diff --git a/packages/cli/README.md b/packages/cli/README.md index 029aa775e..bf2e3310a 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -1,13 +1,13 @@
-

📦✨ yew-pack

+

📦✨ dioxus-cli

- Tooling to supercharge yew projects + Tooling to supercharge dioxus projects

# About --- -yewpack (inspired by wasm-pack and webpack) is a tool to help get Yew projects off the ground. It handles all the build, development, bundling, and publishing to make web development just a simple two commands: `cargo init` and `yewpack publish`. +dioxus-cli (inspired by wasm-pack and webpack) is a tool to help get dioxus projects off the ground. It handles all the build, development, bundling, and publishing to make web development just a simple two commands: `cargo init` and `dioxus-cli publish`. Best thing: - No NPM. @@ -18,31 +18,31 @@ Best thing: - No rollup - No ESLint -Just install Rust, yewpack, and you're good to go. -`cargo install --git github.com/jkelleyrtp/yewpack` +Just install Rust, dioxus-cli, and you're good to go. +`cargo install --git github.com/jkelleyrtp/dioxus-cli` Need a development server? -`yewpack develop` +`dioxus develop` Need to run an example? -`yewpack develop --example textbox` +`dioxus develop --example textbox` Need to benchmark a component? -`yewpack bench` +`dioxus bench` Need to test your code? -`yewpack test` +`dioxus test` Need to build your code into a bundle? -`yewpack build --outdir public` +`dioxus build --outdir public` Need to publish your code to GitHub pages, Netlify, etc? -`yewpack publish --ghpages myrepo.git` +`dioxus publish --ghpages myrepo.git` # Use in your project --- -Sometimes you'll want to include static assets without bundling them into your .wasm content. yewpack provides a few ways of doing this: +Sometimes you'll want to include static assets without bundling them into your .wasm content. dioxus-cli provides a few ways of doing this: -- Load in dynamic content using `yewpack::asset("./static/images/blah.svg")` -- Live-reload HTML templates without rebuilding your .wasm with `yewpack::template("./templates/blah.html")` -- Use a CSS library like tailwind in your yewpack configuration with +- Load in dynamic content using `dioxus::asset("./static/images/blah.svg")` +- Live-reload HTML templates without rebuilding your .wasm with `dioxus::template("./templates/blah.html")` +- Use a CSS library like tailwind in your dioxus configuration with