Execute PowerShell Script from Grunt

Question:

I have a PowerShell script (myScript.ps1) that I need to run as part of my build process. I’m using Grunt to build my code. I cannot figure out how to run this script from Grunt. Does anyone know how to run a PowerShell script from Grunt such that the next task won’t run until the PowerShell script has completed?

Thank you!

Answer:

You could give a try to grunt-shell

Install

Load

Configure

Use

Source:

Execute PowerShell Script from Grunt by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply