NPM Build Utilities @ 0.1.3
    Preparing search index...

    Interface Compiler

    Shape of the utility class for compiling file types.

    0.1.0-alpha

    interface Compiler {
        args: Stage.Compiler.Args;
        ARGS_DEFAULT: Stage.Compiler.Args;
        tsConfig: TsConfig;
        scss(
            input: string,
            output: string,
            level: number,
            sassOpts?: Options<"sync">,
        ): Promise<void>;
        typescript(tsConfig: string, level: number): Promise<void>;
    }

    Implemented by

    Index

    Properties

    A completed args object.

    ARGS_DEFAULT: Stage.Compiler.Args

    Default values for the args property.

    tsConfig: TsConfig

    Default TS config file.

    Methods

    • Compile scss using the sass npm package.

      Parameters

      • input: string

        Scss input path.

      • output: string

        Scss output path.

      • level: number

        Depth level for this message.

      • OptionalsassOpts: Options<"sync">

      Returns Promise<void>

    • Compile typescript using the sass npm package.

      Parameters

      • tsConfig: string

        Path to TS config json used to compile the project.

      • level: number

        Depth level for this message.

      Returns Promise<void>

      StageError If the tsconfig file doesn’t exist.