NPM Build Utilities @ 0.2.0-alpha.1
    Preparing search index...

    Interface Compile

    The required shape for a compile stage.

    CompileStage.ARGS_DEFAULT For defaults.

    0.1.0-alpha

    interface Compile {
        files: false | { root?: string[]; src?: string[] };
        scss: boolean | { postCSS: boolean };
        ts: boolean;
        utils: { compiler?: Stage_Compiler; fs?: FileSystem };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    files: false | { root?: string[]; src?: string[] }

    Whether to include this sub-stage.

    If an object, paths to files copied to the dist directory during compile.

    Type declaration

    • false
    • { root?: string[]; src?: string[] }
      • Optionalroot?: string[]

        Paths relative to the project root — to copy to the dist directory.

      • Optionalsrc?: string[]

        Paths relative to the source directory — to copy to the dist directory.

    scss: boolean | { postCSS: boolean }

    Whether to include this sub-stage.

    If an object, settings for steps within the sub-stage.

    Type declaration

    • boolean
    • { postCSS: boolean }
      • postCSS: boolean

        Whether to run PostCSS on the compiled css.

    0.2.0-alpha — Now can be an object to pass params.

    ts: boolean

    Whether to include this sub-stage.

    utils: { compiler?: Stage_Compiler; fs?: FileSystem }

    Optional class instances to use.