@vidavidorra/create-project
Version:
Interactively create a GitHub project
38 lines (37 loc) • 974 B
TypeScript
import { type Options } from '../options.js';
type FileOptions = {
mode: number;
format: boolean;
read: boolean;
};
declare class File {
readonly path: string;
protected _content: string;
protected readonly _options: Options & FileOptions;
private readonly _directory;
constructor(path: string, options: Options & Partial<FileOptions>);
get options(): {
project: string;
package: string;
public: boolean;
description: string;
author: string;
typescript: boolean;
testing: boolean;
reportCodeCoverage: boolean;
githubOwner: string;
githubRepository: string;
path: string;
dryRun: boolean;
} & FileOptions;
get content(): string;
write(): Promise<void>;
/**
* Process file contents.
*
* @note This function is called automatically from `write`.
*/
process(): this;
private format;
}
export { File };