crp-reagenzglas
v0.0.8
Published
CrowdProcess Web Worker environment simulation
Downloads
10
Readme
It makes writting CrowdProcess Programs faster ;)
It's not an editor, it's a REAGENZGLAS! It's supposed to be used to test how CrowdProcess Programs behave in the worker environment. Assertions work, its good to test data units, it reloads when stuff changes.
Installation
npm install -g crp-reagenzglas
Usage
Run
reagenzglas -p path/to/your/program.js
Open your browser on
https://localhost:8081
Put something on the input field.
Change your
program.js
, and the web page will reload and run your program with the data unit you supplied in step 4 right away. If should also report errors and timings.
Gotchas
The line numbers of the error reports are not ok, I cannot provide a proper view-source link, or get source maps to work on web workers. So yes the error reporting is sad.
If this is not a browserified bundle, your Run function must be at the top of your
program.js
, because of the messed up way it's concatenated when the Web Worker is built. This will be fixed in the next versions. So yourprogram.js
file should really start withfunction Run (dataUnit) {....}
.