#packaging #ssr #tool #command #reactive #projects #vertigo

build vertigo-cli

Reactive Real-DOM library with SSR for Rust - packaging/serving tool

10 unstable releases (3 breaking)

0.5.0 Apr 16, 2024
0.4.3 Feb 28, 2024
0.4.1 Dec 2, 2023
0.4.0 Nov 8, 2023
0.2.0 Mar 25, 2023

#236 in WebAssembly

Download history 7/week @ 2024-02-21 120/week @ 2024-02-28 6/week @ 2024-03-06 2/week @ 2024-03-13 11/week @ 2024-03-27 21/week @ 2024-04-03 83/week @ 2024-04-10 102/week @ 2024-04-17

551 downloads per month

MIT/Apache

145KB
4K SLoC

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 filenames[^hashes] (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

[^hashes]: Except hashes for included static files - these are computed by vertigo-macro library

Dependencies

~33–49MB
~851K SLoC