|
4 年 前 | |
---|---|---|
.. | ||
.vscode | 4 年 前 | |
src | 4 年 前 | |
.gitignore | 4 年 前 | |
Cargo.toml | 4 年 前 | |
README.md | 4 年 前 |
Tooling to supercharge yew projects
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
.
Best thing:
node_modules
.Just install Rust, yewpack, and you're good to go.
cargo install --git github.com/jkelleyrtp/yewpack
Need a development server?
yewpack develop
Need to run an example?
yewpack develop --example textbox
Need to benchmark a component?
yewpack bench
Need to test your code?
yewpack test
Need to build your code into a bundle?
yewpack build --outdir public
Need to publish your code to GitHub pages, Netlify, etc?
yewpack publish --ghpages myrepo.git
Sometimes you'll want to include static assets without bundling them into your .wasm content. yewpack provides a few ways of doing this:
yewpack::asset("./static/images/blah.svg")
yewpack::template("./templates/blah.html")