rxferrix-cli 0.18.0

The `rxferrix` command: scaffolds new RxFerrix apps (`rxferrix new`) and runs them in development (`rxferrix dev`)
//! The app's configuration: what `main` serves and what each `#[rxferrix::test]` gets. Add auth, crons and the like
//! here, e.g. `.auth(rxferrix::auth::AuthConfig::password())` or
//! `.schedule(|s| s.mutation::<tasks::cleanup>().daily_at("03:00"))`.

use rxferrix::RxFerrix;

/// The built web app (empty when `web/dist` doesn't exist).
#[derive(rxferrix::rust_embed::Embed)]
#[folder = "web/dist/"]
#[crate_path = "rxferrix::rust_embed"]
#[allow_missing = true]
struct Web;

#[rxferrix::app]
pub fn configure() -> RxFerrix {
    let mut app = RxFerrix::new();
    if Web::get("index.html").is_some() {
        app = app.embed_static::<Web>();
    }
    app
}