0

When i use shelljs, How can i execute script by opening another shell window or tab ?

I need to start api server and build app both. like

var shell = require('shelljs'); ... shell.exec('node server.js'); shell.exec('npm run build')

Albin Liao
  • 35
  • 1
  • 1
  • 4
  • You want to run both `node server.js` and `npm run build` at the same time? – Are Jul 13 '17 at 09:14
  • yeah. I want to keep the server running in the background and build my app at the same time. Do you have a good idea? – Albin Liao Jul 24 '17 at 06:53

0 Answers0