Node.js and Jake - How to call system commands synchronously within a task?
问题 A Jake task executes a long-running system command. Another task depends on the first task being completely finished before starting. The 'exec' function of 'child_process' executes system commands asynchronously, making it possible to for the second task to begin before the first task is complete. What's the cleanest way to write the Jakefile to ensure that the long-running system command in the first task finishes before the second task starts? I've thought about using polling in a dummy