@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
40 lines (39 loc) • 2.08 kB
TypeScript
import type { ProjectConfigReturn, RseConfig } from "../../sdk-types.js";
import type { Behavior } from "../../sdk-types.js";
import type { RepoOption } from "../../utils/projectRepository.js";
import type { ReliverseMemory } from "../../utils/schemaMemory.js";
/**
* Asks or auto-fills project details (username, projectName, domain).
*/
export declare function initializeProjectConfig(projectName: string, _memory: ReliverseMemory, config: RseConfig, skipPrompts: boolean, isDev: boolean, cwd: string): Promise<ProjectConfigReturn>;
/**
* Sets up i18n if needed and not already present.
* Uses config.i18nBehavior to determine automatic behavior.
*/
export declare function setupI18nSupport(projectPath: string, config: RseConfig): Promise<boolean>;
/**
* Decides whether to install deps based on config or user input.
*/
export declare function shouldInstallDependencies(behavior: Behavior, isDev: boolean): Promise<boolean>;
/**
* Installs dependencies and checks optional DB push script.
*/
export declare function handleDependencies(projectPath: string, config: RseConfig): Promise<{
shouldInstallDeps: boolean;
shouldRunDbPush: boolean;
}>;
/**
* Shows success info, next steps, and handles final user actions (e.g., open in IDE).
*/
export declare function showSuccessAndNextSteps(projectPath: string, selectedRepo: RepoOption, frontendUsername: string, isDeployed: boolean, primaryDomain: string, allDomains: string[], skipPrompts: boolean, isDev: boolean): Promise<void>;
/**
* Lets the user select further actions: open in IDE, open docs, etc.
*/
export declare function handleNextActions(isDev: boolean, projectPath: string, vscodeInstalled: boolean, isDeployed: boolean, primaryDomain: string, allDomains: string[]): Promise<void>;
/**
* Handles a single user-chosen action: open IDE, open docs, etc.
*/
export declare function handleNextAction(isDev: boolean, action: string, projectPath: string, primaryDomain: string, allDomains?: string[]): Promise<void>;
/**
* Creates a new project using the specified template and configuration.
*/