vertigo-cli

Crates.iovertigo-cli
lib.rsvertigo-cli
version0.6.0
sourcesrc
created_at2023-03-15 22:30:25.379087
updated_at2024-08-02 20:18:55.099773
descriptionReactive Real-DOM library with SSR for Rust - packaging/serving tool
homepage
repositoryhttps://github.com/vertigo-web/vertigo/
max_upload_size
id811028
size231,079
Michał Pokrywka (sfisol)

documentation

README

vertigo-cli

A packaging tool and server for vertigo library

crates.io Documentation MIT or Apache 2.0 licensed Dependency Status downloads

This package provides vertigo binary that allows to create, build, serve and watch vertigo-based projects.

Packaging steps performed during build command:

  1. Runs cargo build
  2. Gathers artifacts produced during the build and by vertigo / vertigo-macro libraries:
    • index.html
    • wasm_run.js
    • your_project.wasm
    • included static files
  3. Optimizes your .wasm file using wasm-opt
  4. Adds hashes to filenames1 (to bypass browser's cache)
  5. Places everything in the build dictionary

Installation

cargo install --force vertigo-cli

Example usage

Generate new project

vertigo new my_blog

Build the project

cd my_blog
vertigo build

Serve project

vertigo serve --host 0.0.0.0 --port 8000

Watch project

vertigo watch --disable-wasm-opt

Footnotes

  1. Except hashes for included static files - these are computed by vertigo-macro library

Commit count: 515

cargo fmt