@softwareventures/maintain-project
Version:
Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited
21 lines (20 loc) • 822 B
TypeScript
import type { ProjectOptions } from "../project/project.js";
export type GitHost = GitHubHost | UnknownGitHost;
export interface GitHubHost {
readonly service: "github";
readonly user: string;
readonly project: string;
}
export interface UnknownGitHost {
readonly service: "unknown";
readonly url: string;
}
export interface GitHostOptions {
readonly user?: string | undefined;
readonly project?: string | undefined;
}
export declare function createGitHost(options: ProjectOptions): GitHost;
export declare function gitHostFromUrl(url: string): GitHost | undefined;
export declare function homepageUrl(gitHost: GitHost): string | undefined;
export declare function bugsUrl(gitHost: GitHost): string | undefined;
export declare function repositoryShortcut(gitHost: GitHost): string | undefined;