项目作者: davidedelpapa

项目描述 :
Yew Development Environment (Rust + Yew + Node + Rollup)
高级语言: Shell
项目地址: git://github.com/davidedelpapa/yew-devenv.git
创建时间: 2020-06-08T19:44:44Z
项目社区:https://github.com/davidedelpapa/yew-devenv

开源协议:Other

下载


YEW DevEnv

Built With: RUST WASM: Yew License: Unlicense

Yew Development Environment (Rust + Yew + Node + Rollup)

Usage

Just run the run script; it should correctly initialize the environment at the first run (both cargo and npm)

  1. ./run

Make sure to customize both Cargo.toml and package.json

Moreover, if you rename the project/folder accordingly, you have to remeber to change also the filenames in main.js

In short: wherever you see "yew-devenv", yew_devenv.js or yew_devenv_bg.wasm you have to substitute with the name of your project (example if the first becomes "awesome-project", you have to substitute in main.js also awesome_project.js and awesome_project_bg.wasm respectively)

Caveat: Cleanup

Sometimes the hot-reload server or the thttp server just stay up, while building fails, etc.
In case of “zombie” servers, try to fix it with --clean

  1. ./run --clean

The Environment

The environment is as such:

LICENSE

Copyleft 2020, Davide Del Papa

This repo is under the unlicense license. Substitute the license in your own project at will.

May God bless you.