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 Grun
You could give a try to grunt-shell
Install
npm install --save-dev grunt-shell
Load
grunt.loadNpmTasks('grunt-shell');
Configure
grunt.initConfig({ shell: { ps: { options: { stdout: true }, command: 'powershell myScript.ps1' } } });
Use
grunt shell:ps