Interface DjockeyPlugin

interface DjockeyPlugin {
    doAsyncWorkBetweenReadAndWrite?: ((args: {
        doc: DjockeyDoc;
        logCollector: LogCollector;
    }) => Promise<void>);
    getNodeReservations?: ((config: DjockeyConfigResolved) => DjockeyPluginNodeReservation[]);
    getShouldIncludeStaticFileInDoc?: ((args: {
        doc: DjockeyDoc;
        staticFileRefPath: string;
    }) => boolean);
    getStaticFiles?: ((args: {
        config: DjockeyConfigResolved;
        docs: DjockeyDoc[];
        logCollector: LogCollector;
        renderer: DjockeyRenderer;
    }) => DjockeyStaticFileFromPlugin[]);
    name: string;
    onPass_read?: ((args: {
        doc: DjockeyDoc;
        getIsNodeReservedByAnotherPlugin: ((node: AstNode) => boolean);
        logCollector: LogCollector;
    }) => void);
    onPass_write?: ((args: {
        doc: DjockeyDoc;
        getIsNodeReservedByAnotherPlugin: ((node: AstNode) => boolean);
        logCollector: LogCollector;
    }) => void);
    onPrepareForRender?: ((args: {
        config: DjockeyConfigResolved;
        doc: DjockeyDoc;
        logCollector: LogCollector;
        renderer: DjockeyRenderer;
    }) => void);
    setup?: ((args: {
        logCollector: LogCollector;
    }) => Promise<void>);
}

Properties

doAsyncWorkBetweenReadAndWrite?: ((args: {
    doc: DjockeyDoc;
    logCollector: LogCollector;
}) => Promise<void>)
getNodeReservations?: ((config: DjockeyConfigResolved) => DjockeyPluginNodeReservation[])
getShouldIncludeStaticFileInDoc?: ((args: {
    doc: DjockeyDoc;
    staticFileRefPath: string;
}) => boolean)
getStaticFiles?: ((args: {
    config: DjockeyConfigResolved;
    docs: DjockeyDoc[];
    logCollector: LogCollector;
    renderer: DjockeyRenderer;
}) => DjockeyStaticFileFromPlugin[])
name: string
onPass_read?: ((args: {
    doc: DjockeyDoc;
    getIsNodeReservedByAnotherPlugin: ((node: AstNode) => boolean);
    logCollector: LogCollector;
}) => void)
onPass_write?: ((args: {
    doc: DjockeyDoc;
    getIsNodeReservedByAnotherPlugin: ((node: AstNode) => boolean);
    logCollector: LogCollector;
}) => void)
onPrepareForRender?: ((args: {
    config: DjockeyConfigResolved;
    doc: DjockeyDoc;
    logCollector: LogCollector;
    renderer: DjockeyRenderer;
}) => void)
setup?: ((args: {
    logCollector: LogCollector;
}) => Promise<void>)