CLI - mzoon
mzoon is a MoonZoon CLI tool.
_
cargo install mzoon --git https://github.com/MoonZoon/MoonZoon --locked
Notes:
- Why --locked ?
mzoonhasn't been published to crates.io yet.- Faster installation methods with pre-compiled binaries will be added later.
Commands
1. new
- Example A:
mzoon new my_project- Creates a new directory with a new MoonZoon project.
- Example B:
mzoon new .- The new project files will be created in the current directory.
- Optional parameters:
--local-deps/-l- Example:
mzoon new my_project --local-deps moonandzoondependencies inCargo.tomls will be defined withpathinstead ofversion. It's useful especially for MoonZoon development.
- Example:
2. start
- Example:
mzoon start - Compiles the app in the debug mode and then starts the Moon's server.
- Both Moon and Zoon apps are automatically recompiled on a file change.
- The Moon app auto-reloads the Zoon app on a change.
- You can scan a generated QR code to open the app on your phone.
- Optional parameters:
--release/-r- Example:
mzoon start --release - Compiles in the release mode and compresses frontend files.
- Example:
--profiling/-p- Example:
mzoon start --profiling - The same as the release mode but debugging info isn't removed from the binary.
- Example:
--open/-o- Example:
mzoon start --open - Opens the Zoon's URL in a new browser tab (e.g.
localhost:8080)
- Example:
3. build
- Example:
mzoon build - Compiles the app in the debug mode.
- Optional parameters:
--release/-r- Example:
mzoon build --release - Compiles in the release mode and compresses frontend files.
- Example:
--profiling/-p- Example:
mzoon build --profiling - The same as the release mode but debugging info isn't removed from the binary.
- Example:
--frontend-dist/-f- Example:
mzoon build --release --frontend-dist - Generates a new folder
frontend_distin the project root. - You can deploy the content of the
frontend_distfolder to your favorite frontend hosting. - You can also generate some hosting-specific files with the
mzoonargument<HOSTING>- Example:
mzoon build -r -f netlify
- Example:
- Example: