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 init
After initialization, log in to direct.
daab login
Add daab-workflow
to your daab dependencies.
npm install daab-workflow
Next, create a directory in daab to place your workflow file.
mkdir workflows
Add a new workflow file to the directory you just created.
vim workflows/hello.yml
More 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 start
TODO