mzoon
is a MoonZoon CLI tool.
_
cargo install mzoon --git https://github.com/MoonZoon/MoonZoon --locked
Notes:
- Why --locked ?
mzoon
hasn't been published to crates.io yet.- Faster installation methods with pre-compiled binaries will be added later.
- 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
moon
andzoon
dependencies inCargo.toml
s will be defined withpath
instead ofversion
. It's useful especially for MoonZoon development.
- Example:
- 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:
- 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_dist
in the project root. - You can deploy the content of the
frontend_dist
folder to your favorite frontend hosting. - You can also generate some hosting-specific files with the
mzoon
argument<HOSTING>
- Example:
mzoon build -r -f netlify
- Example:
- Example:
- "What about other commands like
deploy
andtest
?"- Other commands will be added later.
- You should be able to use the standard
cargo test
until there is a nativemzoon
support. - Write your ideas on the MoonZoon Discord, please.