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
590KB
15K
SLoC
vertigo-cli
A packaging tool and server for vertigo library
This package provides vertigo
binary that allows to create, build, serve and watch vertigo-based projects.
Packaging steps performed during build command:
- Runs cargo build
- Gathers artifacts produced during the build and by
vertigo
/vertigo-macro
libraries:index.html
wasm_run.js
your_project.wasm
- included static files
- Optimizes your .wasm file using
wasm-opt
- Adds hashes to filenames[^hashes] (to bypass browser's cache)
- 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