0.5.2 • Published 4 years ago

@bigtest/parcel v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@bigtest/parcel

Control a parcel worker farm with visibility into key work events.

When parcel is running, it starts up a bunch of processes to do the actual work of compilation and bundling in parallel. This is what we want, but because of the way its implemented, it is possible that if shutdown happens too quickly, or while it is in the middle of a bundle, then it can leave a bunch of processes hanging around.

This solves the problem by wrapping an effection resource around a parcel process and killing it off, and all children whenever it passes out of scope.

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

Synopsis

import { ParcelProcess } from '@bigtest/parcel';

function* start() {

  // this operation does not complete until parcel is up and running
  let parcel: ParcelProcess = yield ParcelProcess.create({
    buildDir: './build',
    srcPath: './tests/*.test.{js,ts}'
  });

  while (true) {
    let message = yield parcel.receive({ type: "update" });
    console.log('new build happened: ', message);
  }
}

Development

$ yarn start

Testing

$ yarn test
0.5.2-4c695f0e

4 years ago

0.5.1-d5f58087

4 years ago

0.5.1-3cbefaed

4 years ago

0.5.1-dc4806fe

4 years ago

0.5.2

4 years ago

0.5.1-fc068c45

4 years ago

0.5.1-0d5e26c3

4 years ago

0.4.1-4ee3e57

4 years ago

0.5.1

4 years ago

0.5.1-999b3b7

4 years ago

0.5.0-d2d50a5

4 years ago

0.5.0-8b25469

4 years ago

0.5.0

4 years ago

0.5.0-def5a45

4 years ago

0.5.0-4561dd2

4 years ago

0.4.1-227b18b

4 years ago

0.4.1-8770aad

4 years ago

0.4.1-d7d7b59

4 years ago

0.4.1-e30787e

4 years ago

0.4.1-872ab7a

4 years ago

0.4.1-ee54fc2

4 years ago

0.4.1-1b7fa0f

4 years ago

0.4.1-d8c91d0

4 years ago

0.4.1-34a2ad2

4 years ago

0.4.1-221f108

4 years ago

0.4.1-e1ef9de

4 years ago

0.4.1-d0c4ea8

4 years ago

0.4.1-16a1bc8

4 years ago

0.4.1-3c87348

4 years ago

0.4.1-7846dfd

4 years ago

0.4.1-1e3d38f

4 years ago

0.4.1-185e1f4

4 years ago

0.4.1-b744782

4 years ago

0.1.0-23f2461

4 years ago

0.4.1-d5c364f

4 years ago

0.1.0-528029c

4 years ago

0.1.0-2a8c361

4 years ago

0.1.0-cf48ba6

4 years ago

0.1.0-54bff9d

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.1.0-d83e3c0

4 years ago

0.4.0-b488303

4 years ago

0.1.0-4ba3846

4 years ago

0.1.0-a799ed3

4 years ago

0.1.0-ad5a84a

4 years ago

0.1.0-bc0e238

4 years ago

0.1.0-dd093ca

4 years ago

0.1.0-6f4775a

4 years ago

0.1.0-6e5bbf9

4 years ago

0.1.0-c778a3c

4 years ago

0.1.0-1058ea1

4 years ago

0.1.0-122ada0

4 years ago

0.1.0-441fbbf

4 years ago

0.1.0-da53ed2

4 years ago

0.1.0-6b0bb51

4 years ago

0.1.0-96e2393

4 years ago

0.1.0-513b637

4 years ago

0.1.0-0ca7157

4 years ago

0.1.0-194dc52

4 years ago

0.1.0-bcea1fb

4 years ago

0.1.0-02bb135

4 years ago

0.1.0-24f4cab

4 years ago

0.1.0-1a915aa

4 years ago

0.1.0-6fcfdda

4 years ago

0.1.0-4b80e2d

4 years ago

0.1.0-b18ad89

4 years ago

0.1.0-31eaa75

4 years ago

0.1.0-9420cd2

4 years ago

0.1.0-4b87af3

4 years ago

0.1.0-089e697

4 years ago

0.1.0-7e99cfd

4 years ago

0.1.0-642325c

4 years ago

0.1.0-5b0befb

4 years ago

0.1.0-3f2df09

4 years ago

0.1.0-0b744e8

4 years ago

0.1.0-c23e9d7

4 years ago

0.1.0-eed1b7f

4 years ago

0.1.0-c9949f8

4 years ago

0.1.0-1fb52a3

4 years ago

0.1.0-7c14a06

4 years ago

0.1.0-ad77855

4 years ago

0.1.0-64de8f7

4 years ago

0.1.0-72c98bb

4 years ago

0.1.0-f2dfdc8

4 years ago

0.1.0-503b725

4 years ago

0.1.0

4 years ago

0.1.0-b656909

4 years ago

0.1.0-bbdf395

4 years ago

0.1.0-533fc47

4 years ago

0.1.0-1948d41

4 years ago

0.1.0-4576578

4 years ago

0.1.0-1611520

4 years ago

0.1.0-527ea94

4 years ago

0.1.0-5bca3ed

4 years ago

0.1.0-c4441b8

4 years ago

0.1.0-44bbb42

4 years ago

0.1.0-f106253

4 years ago

0.1.0-e80d14c

4 years ago

0.1.0-e85f098

4 years ago

0.1.0-70e1608

4 years ago