child_process.exec() calls a shell script from grunt. This function is async, so it creates one bash shell for each email template simultaneously. Because of our large number of email templates, this causes a cpu spike
child_process.exec() calls a shell script from grunt.
This function is async, so it creates one bash shell for each email template simultaneously.
Because of our large number of email templates, this causes a cpu spike

Solution is to use the synchronous version of the function.
https://nodejs.org/api/child_process.html#child_process_child_process_execsync_command_options

Aplopio/email-friendly-templates,Aplopio/email-friendly-templates,Aplopio/email-friendly-templates