rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[heft] Run shell script action

Open Faithfinder opened this issue 2 years ago • 4 comments

Sometimes, running an arbitrary shell script is all you need for success.

runScript is complicated, not documented and hella strict. I just want to run an arbitrary script like a package.json script would do it.

Faithfinder avatar Jul 05 '22 01:07 Faithfinder

also need run binary in node_modules/.bin

GongT avatar Jul 06 '22 09:07 GongT

Putting together a plugin to run a shell script would be pretty easy. Would you be interested in contributing that as an official plugin?

iclanton avatar Jul 13 '22 18:07 iclanton

Hmm... Maybe? Not sure when I'll have the time, so this is up for grabs for the moment, but I'll keep that in mind for when I might want to code outside of work. Somewhat weird to start heft plugin with @D4N14L's work in progress...

Faithfinder avatar Jul 13 '22 18:07 Faithfinder

@Faithfinder plugin differences aren't that big, so migration (especially for a plugin with this functionality) would be quick to accomplish. Having said that, runScript can be used with a dev-provided .js file which simply spawns some process. Though I can understand wanting a plugin to simply run a CLI command in some dir.

D4N14L avatar Jul 14 '22 18:07 D4N14L