Writing a plugin for the Faqtor task runner

github logo ・1 min read

Writing a plugin for Faqtor is a simple and straightforward process. Schematically, it looks like this (TypeScript code):

import * as faqtor from β€œfaqtor”; 

export const createFactor = (....arguments): faqtor.IFactor => {

    const run = async (): Promise<Error> => {
        ....do some work here
    }

    return factor.func(run);
}

Let us examine this with the example of the faqtor-of-rollup plugin, intended, as the name implies, to use Rollup bundler in our projects. Continue reading

twitter logo DISCUSS
Classic DEV Post from Feb 5

If/else or just if?

It's a simple question that cuts deep.

Osman Bineev profile image
Just a software developer