This package is a workflow engine for daab. You only need to define your workflow in YAML. daab will work according to your workflow.
First of all, create a directory for your daab and initialize it.
mkdir my-daab && cd $_
daab initAfter initialization, log in to direct.
daab loginAdd daab-workflow to your daab dependencies.
npm install daab-workflowNext, create a directory in daab to place your workflow file.
mkdir workflowsAdd a new workflow file to the directory you just created.
vim workflows/hello.ymlMore information on how to write a workflow can be found in example/workflows/*.yml.
Implement scripts/*.js as follows.
const { workflow } = require("daab-workflow");
module.exports = workflow('./workflows');Implement *.ts as follows if you use TypeScript.
import { workflow } from 'daab-workflow';
export = workflow('./workflows');Finally, run daab as usual.
DISABLE_NPM_INSTALL=yes npm startTODO