@xyd-js/cli 0.1.0-xyd.5 → 0.1.0-xyd.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
2
+
3
+ export function Layout({ children }: { children: React.ReactNode }) {
4
+ return (
5
+ <html lang="en">
6
+ <head>
7
+ <meta charSet="utf-8" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
9
+ <Meta />
10
+ <Links />
11
+ </head>
12
+ <body>
13
+ {children}
14
+ <ScrollRestoration />
15
+ <Scripts />
16
+ </body>
17
+ </html>
18
+ );
19
+ }
20
+
21
+ export default function App() {
22
+ return <Outlet />;
23
+ }
@@ -0,0 +1,5 @@
1
+ // we export empty routes because rr7 need this file and we load routes via xyd plugins
2
+
3
+ export const routes = []
4
+
5
+ export default routes
package/.cli/bin.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import './index.js';