NPM Build Utilities @ 0.1.3
    Preparing search index...

    Interface ClassInternal

    Shape for the project config class (i.e., Config.Class).

    Properties are properly defined in Config.

    0.1.0-alpha.1

    interface Class {
        clr: Colour;
        compiler: undefined | Partial<Stage.Compiler.Args>;
        console: undefined | Partial<Logger.Args>;
        fs: Partial<FileSystemType.Args>;
        launchYear: string;
        paths: Config.Internal.Paths;
        replace: Replace | ((stage: Stage) => Replace);
        stages: Config.Internal.Stages;
        title: string;
        export(): Default;
        getDistDir(
            fs: FileSystemType,
            subDir?: DistDirectory,
            ...subpaths: string[],
        ): string;
        getScriptsPath(
            fs: FileSystemType,
            subDir?: "logs",
            ...subpaths: string[],
        ): string;
        getSrcDir(
            fs: FileSystemType,
            subDir: SourceDirectory,
            ...subpaths: string[],
        ): string[];
        getSrcDir(
            fs: FileSystemType,
            subDir?: undefined,
            ...subpaths: string[],
        ): string;
        getSrcDir(
            fs: FileSystemType,
            subDir?: SourceDirectory,
            ...subpaths: string[],
        ): string | string[];
        getStage(
            stage: Name,
            console: Logger,
        ): Promise<undefined | [Stage.Class, Partial<Stage.Args>]>;
        minimum(): Config;
        toJSON(): Config.Internal;
        toString(): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    clr: Colour

    Default output colour to the terminal.

    compiler: undefined | Partial<Stage.Compiler.Args>
    console: undefined | Partial<Logger.Args>

    Optional arguments to use when constructing FileSystem.

    launchYear: string
    replace: Replace | ((stage: Stage) => Replace)

    Placeholders to be replaced during the build processes.

    title: string

    Methods

    • Internal

      Used to export the default config to write a config file when one did not exist.

      Returns Default

      0.1.0-alpha.1

    • Internal

      Gets a path to the Config.Paths.scripts directories.

      Parameters

      • fs: FileSystemType

        Instance used to work with paths and files.

      • OptionalsubDir: "logs"

        Sub-path to get.

      • ...subpaths: string[]

        Optional additional subpaths.

      Returns string

      Relative path.

      0.1.0-alpha — Previously defined in ProjectConfig class.

    • Internal

      Returns the minimum required properties of this config.

      Useful for creating stripped-down or default configuration objects.

      Returns Config

      The minimum required properties for this config.

      0.1.0-alpha — Previously defined in ProjectConfig class.