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 Jun 17

Should a button communicate the current state, the intended behavior, or both?

Osman Bineev profile image
Just a software developer