Skip to content

krdlab/daab-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daab-workflow

This package is a workflow engine for daab. You only need to define your workflow in YAML. daab will work according to your workflow.

Usage

1. Create your daab

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

2. Install daab-workflow

Add daab-workflow to your daab dependencies.

npm install daab-workflow

Next, create a directory in daab to place your workflow file.

mkdir workflows

3. Create your workflow

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.

4. Run daab

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

Contribution

TODO

About

Workflow engine for daab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published