This project intends to save you time and headaches creating more easily enqueuer plugins. This canonical version can serve as a reference, or a starting point all on its own.
$ git clone http://github.com/enqueuer-land/plugin-scaffold or download as zip file.
Give it a meaningful name. Such as:
Get rid of the useless stuff
Thinking about creating only a publisher? No problem, go ahead and delete everything else. The same applies to every property.
In order to be enqueuer compatible, a module has to have an
entryPoint exported function in its main file and, in its package.json file, it has to have either 'enqueuer' or 'nqr' as keywords.
$ npm install and install any dependency of yours
$ npm i my-dependency
Customize. It's time to do what you want. Be free.
A linter is setup within this project, keep using it:
$ npm run lint.
Other than that, you can keep testing it along with enqueuer:
$ npm test.
To make your life easier and run a bunch of tests at once:
$ npm run all
It's not a mandatory thing. But be nice and help others. :)
Publish it to npm:
$ npm publish
Don't forget to add it to the enqueuer plugins list