11 unstable releases (4 breaking)

0.6.0 Aug 2, 2024
0.5.0 Apr 16, 2024
0.4.3 Feb 28, 2024
0.4.1 Dec 2, 2023
0.2.0 Mar 25, 2023

#408 in WebAssembly

MIT/Apache

590KB
15K SLoC

Rust 13K SLoC // 0.0% comments TypeScript 2K SLoC // 0.0% comments JavaScript 115 SLoC // 0.2% comments

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

~36–51MB
~869K SLoC