ryuk-cli 0.1.1

The `ryuk` command: scaffold a Ryuk app (axum, SeaORM, Inertia/Svelte), generate controllers, models, jobs and mails, run migrations and the dev server.
import { mount } from "svelte";
import { createInertiaApp } from "@inertiajs/svelte";
import Layout from "./layouts/App.svelte";
import { initTheme } from "./theme.js";
import "./app.css";

// Before first paint of the app: apply the saved theme (CSS already follows the OS by default).
initTheme();

const pages = import.meta.glob("./pages/**/*.svelte", { eager: true });

createInertiaApp({
  resolve: (name) => {
    const page = pages[`./pages/${name}.svelte`];
    return { default: page.default, layout: page.layout ?? Layout };
  },
  setup({ el, App, props }) {
    mount(App, { target: el, props });
  },
});