@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
36 lines (35 loc) • 1.66 kB
TypeScript
import { type RequiredProjectContent } from "@reliverse/cfg";
import type { ShowMenuResult } from "../../../libs/sdk/add/add-local/core/types.js";
/**
* Shows a menu to pick an existing rse project or create a new one.
*/
export declare function handleProjectSelectionMenu(cwd: string, isDev: boolean): Promise<string>;
/**
* Creates a new project directory and initializes it with basic config files.
* Also prompts the user for additional setup steps.
*/
export declare function initMinimalrseProject(projectPath: string, projectName: string, isDev: boolean): Promise<void>;
/**
* Presents a menu for an existing project that already has the necessary files.
* Allows the user to install dependencies, update project templates, or edit settings.
*/
export declare function showExistingProjectMenu(cwd: string, isDev: boolean): Promise<{
areDependenciesMissing: boolean;
}>;
/**
* Determines the project status by checking whether the necessary
* rse and package.json files exist in this directory.
*/
export declare function determineProjectStatus(requiredContent: RequiredProjectContent): "new" | "existing" | "incomplete";
/**
* Sets up new rse configuration files for a project without them.
*/
export declare function handleNewProject(cwd: string, isDev: boolean): Promise<ShowMenuResult>;
/**
* Calls the advanced menu handler for a project that already has necessary files.
*/
export declare function handleExistingProject(cwd: string, isDev: boolean): Promise<ShowMenuResult>;
/**
* Explains that the current directory lacks the files needed for rse work.
*/
export declare function handleIncompleteProject(): ShowMenuResult;