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:
  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

sh cargo install --force vertigo-cli

Example usage

Generate new project

sh vertigo new my_blog

Build the project

sh cd my_blog vertigo build

Serve project

sh vertigo serve --host 0.0.0.0 --port 8000

Watch project

sh vertigo watch --disable-wasm-opt