verda
TypeScript icon, indicating that this package has built-in type declarations

1.12.1 • Public • Published

Verda

Verda is a tracing promise runner that allows dynamic dependencies.

Usage

npm install verda

After that, prepare a verdafile.js under your repository, providing build recipes:

const build = require('verda').createBuildAndThenStart();

build.setJournal(`build/.verda-journal`);

const { oracle, file } = build.ruleTypes;

const one = oracle("one", async t => 1);
const two = oracle("two", async t => {
    const [one] = await t.need(one);
    return one + 1;
});

Strongly-typed rules

In Verda, all rules are strongly typed:

const build = require('verda').createBuildAndThenStart();
const { computed, file } = build.ruleTypes;
const { fu } = build.rules;
const { run, node, cd, cp, rm } = build.actions;

const ObjFile = file.glob('build/*.o', async (t, o) => {
    const c = await t.need(fu`src/${o.name}.c`);
    await run('gcc', c.full, '-o', o.full);
});

Readme

Keywords

none

Package Sidebar

Install

npm i verda

Weekly Downloads

546

Version

1.12.1

License

MIT

Unpacked Size

176 kB

Total Files

111

Last publish

Collaborators

  • be5invis