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
Top comments (0)