UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

60 lines (59 loc) 2.29 kB
import type { rseSchema } from "@reliverse/cfg"; import type { Static } from "@sinclair/typebox"; import { type RepoInfo } from "./schemaTemplate"; export type RepoFromSchema = NonNullable<Static<(typeof rseSchema)["properties"]["projectTemplate"]>>; export type CategoryFromSchema = NonNullable<Static<(typeof rseSchema)["properties"]["projectCategory"]>>; export interface CloneOrTemplateRepo { id: RepoFromSchema; author: string; name: string; description: string; category: CategoryFromSchema; } export type RepoOption = CloneOrTemplateRepo["id"] | "unknown"; export declare const REPO_TEMPLATES: CloneOrTemplateRepo[]; export declare function getRepoInfo(repoId: string): Promise<RepoInfo | null>; export declare function saveRepoToDevice(repo: CloneOrTemplateRepo, projectPath: string): Promise<void>; export declare const TEMP_FULLSTACK_WEBSITE_TEMPLATE_OPTIONS: { readonly "blefnk/relivator-nextjs-template": { readonly label: `Relivator ${any}`; readonly value: "blefnk/relivator-nextjs-template"; readonly hint: string; }; readonly "blefnk/versator-nextjs-template": { readonly label: `Versator ${any}`; readonly value: "blefnk/versator-nextjs-template"; readonly hint: string; }; readonly "blefnk/next-react-ts-src-minimal": { readonly label: `Next.js Only ${any}`; readonly value: "blefnk/next-react-ts-src-minimal"; readonly hint: string; }; }; export declare const TEMP_SEPARATED_WEBSITE_TEMPLATE_OPTIONS: { "blefnk/relivator-docker-repo": { label: string; value: string; hint: string; }; }; export declare const TEMP_VSCODE_TEMPLATE_OPTIONS: { readonly "microsoft/vscode-extension-samples": { readonly label: "VS Code Extension Sample"; readonly value: "microsoft/vscode-extension-samples"; readonly hint: string; }; readonly "microsoft/vscode-extension-template": { readonly label: "VS Code Extension Template"; readonly value: "microsoft/vscode-extension-template"; readonly hint: string; }; }; export declare const TEMP_BROWSER_TEMPLATE_OPTIONS: { "rsebrowser-extension": { label: string; value: string; hint: string; }; };