Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Automatically configure a "root" project. #42

Description

@brad-jones

I think it would be a nice addition to automatically configure a root project.
And then you can buy into the "project" api when and if required.

For example this is what I originally started with, which of course did not work.

import { project, script, ScriptMode } from '@imba/runner';

script('ping-serial', function(script) {
    script.describe(`Pings googles dns servers, one after the other.
    Example usage: yarn imba run ping-serial
    `);
    script.mode(ScriptMode.Series);
    script.run('ping1');
    script.run('ping2');
});

script('ping-parallel', function(script) {
    script.describe(`Pings googles dns servers, at the same time.
    Example usage: yarn imba run ping-parallel
    `);
    script.run('ping1');
    script.run('ping2');
});

script('ping1', function(script) {
    script.cmd('ping -c 4 8.8.8.8');
});

script('ping2', function(script) {
    script.cmd('ping -c 4 8.8.4.4');
});

At the very least I think the README should make mention of the fact that at least one project MUST be defined.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions