Skip to content

Instantly share code, notes, and snippets.

@vsavkin
Created December 17, 2019 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsavkin/27e8fbd34bb13312bb663ce063777bb4 to your computer and use it in GitHub Desktop.
Save vsavkin/27e8fbd34bb13312bb663ce063777bb4 to your computer and use it in GitHub Desktop.
const execSync = require('child_process').execSync;
const commands = JSON.parse(process.argv[2]);
const projects = commands[process.argv[3]];
const target = process.argv[4];
execSync(
`npx nx run-many --target=${target} --projects=${projects.join(
','
)} --parallel`,
{
stdio: [0, 1, 2]
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment