alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
18 lines (14 loc) • 358 B
text/typescript
export interface WebIndexTsOptions {
appName?: string;
}
export const webIndexTs = (options: WebIndexTsOptions = {}) => {
const { appName = "app" } = options;
return `
import { $module } from "alepha";
import { AppRouter } from "./AppRouter.ts";
export const WebModule = $module({
name: "${appName}.web",
services: [AppRouter],
});
`.trim();
};