https://github.com/linux-china/trunk-demo
WebAssembly development with Trunk & Vite.js
https://github.com/linux-china/trunk-demo
trunk-rs vitejs wasm-bindgen
Last synced: about 1 year ago
JSON representation
WebAssembly development with Trunk & Vite.js
- Host: GitHub
- URL: https://github.com/linux-china/trunk-demo
- Owner: linux-china
- Created: 2021-09-23T07:52:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T14:58:18.000Z (about 3 years ago)
- Last Synced: 2025-04-02T02:51:14.982Z (over 1 year ago)
- Topics: trunk-rs, vitejs, wasm-bindgen
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Trunk & Vite.js Demo
=========================
Trunk is a WASM web application bundler for Rust, and Vite.js is next Generation Frontend Tooling. Ok, they are
together now for you.
# Development
* Install Trunk first: `cargo install --git https://github.com/linux-china/trunk.git`
* Start dev server: run `npm install` then `npm run dev` and visit http://localhost:3000
# Features
* Wasm build by Trunk
* Web development by Vite.js
* Bundle by Vite.js
* Trunk can still work as his way.
# Trunk Configuration
Elements in trunk.toml:
```
pub struct ConfigOpts {
pub build: Option,
pub watch: Option,
pub serve: Option,
pub clean: Option,
pub tools: Option,
pub proxy: Option>,
pub hooks: Option>,
}
```
More details: https://github.com/thedodd/trunk/blob/master/src/config/models.rs
# References
* Trunk: https://trunkrs.dev/
* Vite.js: https://vitejs.dev/
* npm-run-all: https://github.com/mysticatea/npm-run-all