We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copied from adapt-security/adapt-authoring#280:
We're currently not able to run the CLI in parallel, as errors are thrown (think this could be caused by some kind of global scope).
An array of promises is being returned for each invocation of the install command when run in parallel, instead of a single resolved/rejected promise.
In framework directory:
Add installParallel.js:
installParallel.js
(async function() { const cli = require('adapt-cli').api.commands; const plugins = [ 'adapt-contrib-accordion', 'adapt-contrib-slider', 'adapt-contrib-vanilla' ]; const results = await Promise.allSettled(plugins.map(plugin => cli.install(plugin))); results.forEach((result, i) => console.log(plugins[i], result.value || result.reason)); }());
Run:
npm install adapt-cli node installParallel
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error
Copied from adapt-security/adapt-authoring#280:
An array of promises is being returned for each invocation of the install command when run in parallel, instead of a single resolved/rejected promise.
To reproduce
In framework directory:
Add
installParallel.js
:Run:
The text was updated successfully, but these errors were encountered: