Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trademe/observabuild

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trademe/observabuild

Trade Me observable build

  • 2.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-64.06%
Maintainers
5
Weekly downloads
 
Created
Source

@trademe/observabuild - RXJS powered build coordinator

npm version

Allows you to run build tasks in serial or parallel, and chain tasks together. Formats output automatically for console or TeamCity depending on environment. Stops running child processes on error.

Example:

const { Build, log, node, parallel, stepAsync, yarn } = require('@trademe/observabuild');

const INITIAL_STATE = {
};

new Build(INITIAL_STATE)
    .start(
        parallel(
            yarn({ command: 'test:delay', name: 'Async One', prefix: 'Async1' }),
            node({ command: './test/delay.js', name: 'Async Two', prefix: 'Async2' })
        ),
        stepAsync(action => {
            action.log('starting long running task');
            if (someLongRunningTask()) {
                action.done('finished long running task');
            } else {
                action.error('task failed');
            }
        }, { name: 'Long running task', prefix: 'Three' }),
        log('Build succeeded')
    );

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc