Addresses scoring of `@fresh/examples` of JSR for several metrics: - ✅ Adds module doc for all entrypoints - ✅ Adds descriptions to all public exports for `@fresh/examples` (0% -> 100%) I could not find if `@fresh/examples` are part of any E2E tests to test using JSR package as mounted app or Island, or if this is just a small demo for users. So I just added small generic drescriptions. Part of #3597
19 lines
364 B
TypeScript
19 lines
364 B
TypeScript
/**
|
|
* Module containing a simple example Fresh App
|
|
*
|
|
* @module
|
|
*/
|
|
|
|
import { App } from "fresh";
|
|
import { Doc } from "./shared.tsx";
|
|
|
|
/** App that renders a sample HTML document */
|
|
export const app2: App<unknown> = new App()
|
|
.get("/", (ctx) =>
|
|
ctx.render(
|
|
<Doc>
|
|
<h1>App2</h1>
|
|
<p>This app is loaded from JSR</p>
|
|
</Doc>,
|
|
));
|