mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 06:00:21 +00:00
Feat: update spelling and changes to cli
This commit is contained in:
parent
4d7ac5bb5d
commit
4dcfe66253
4 changed files with 21 additions and 16 deletions
1
.vscode/spellright.dict
vendored
1
.vscode/spellright.dict
vendored
|
@ -2,3 +2,4 @@ bearly
|
|||
Clippy
|
||||
tide_ssr
|
||||
Liveview
|
||||
Dioxus
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
let mut app = App::new();
|
||||
// let mut app = App::new();
|
||||
|
||||
// app.at(c)
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<div align="center">
|
||||
<h1>📦✨ yew-pack</h1>
|
||||
<h1>📦✨ dioxus-cli</h1>
|
||||
<p>
|
||||
<strong>Tooling to supercharge yew projects</strong>
|
||||
<strong>Tooling to supercharge dioxus projects</strong>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue