@bigtest/bundler
TypeScript icon, indicating that this package has built-in type declarations

0.16.1 • Public • Published

@bigtest/bundler

Control Rollup with visibility into key work events.

Also, it isn't enough just to be running Rollup, we have to know that it is up and running, and when new builds are available. For this, the Bundler interface implements the receive() method to get messages about when a new build is available.

Synopsis

import { Bundler } from '@bigtest/bundler';
import { subscribe } from '@effection/subscription';

function* start() {
  let bundler: Bundler = yield Bundler.create([{
    entry: 'src/index.js',
    outFile: 'dist/index.js'
  }]);
  let subscription = yield subscribe(bundler);

  yield subscription.forEach(function*(message) {
    console.log('new build happened:', message);
  });
}

Testing

$ yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i @bigtest/bundler

Weekly Downloads

100

Version

0.16.1

License

MIT

Unpacked Size

19.3 kB

Total Files

17

Last publish

Collaborators

  • frontsidejack