Home Reference Source Repository

~WOLT~ minimalists tasks assistant

To assist you with a simple build tasks. For the case when webpack mostly do the job and gulp is an overkill.

Features

Design concepts

Background

When I started using webpack I realised there's no need for gulp anymore. Gulp is great, but when it comes to simple tasks and predictable order it's a mess (please read this: recipe, issue, post). Finally I've got back to custom build scripts, but hey, one script per task is a bad idea, I need all-in-one simple config with no additional fancy CLI tool. That's how it was born.

API

Please read pretty generated API docs here or just look at the source, it's full of comments and almost no code

Examples

Please look at the live example in examples/tasks.js

Create build.js:

const task = require('wolt');

task.is('default', 'build');

task.alias('build', 'buildme', 'make', 'bake');

task.is('build:dev', () => {
    task.do('dependent');
    task.do('more-dependent', {param: 'some-param'});

    task.force('always-do-this');

    if (!task.check(src, dest)) {
        task.log('build:dev', 'Everything is up to date!');
        return;
    }

    webpackDevServer();

    openBrowser();
});

task.cli();

Now run it as: node build.js --task clean,build --quiet

FAQ

Why didn't you just use GNU make if you don't need async tasks?

Why didn't you just continue using gulp?

Why do I need this? Its source almost has no code, just comments..

What it means, WOLT?

Bugs

Please fix them and report if you found some =)