Friday 27 December 2019

(Help) How to automatically open a new tab in terminal and then run a script?

Hi,I want to run a npm script in a new terminal tab in a single command. To this purpose, I've installed ttab and wrote this script:dev: "cd back && node server", server: "ttab -t 'Server' && npm run dev" When launching npm run server , a new tab open in my terminal, as expected, but the node server starts in my original window! How to make sure the script starts in the new tab?Thanks!

Submitted December 27, 2019 at 03:00PM by MonsieurLeland

No comments:

Post a Comment