4 releases
new 0.3.1 | May 25, 2023 |
---|---|
0.3.0 | May 1, 2023 |
0.2.0 | Mar 25, 2023 |
0.2.0-alpha | Mar 15, 2023 |
#186 in Build Utils
75 downloads per month
185KB
5K
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
~26–37MB
~737K SLoC