I
I
ince2020-01-03 01:37:55
Automation
ince, 2020-01-03 01:37:55

How to organize batch execution of several scripts?

There are several separate node.js scripts that need to be executed sequentially.
How to combine them into one package? Bash?
Is it possible to do this without leaving the node environment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-01-03
@ince

$ node ./app.js; node ./app2.js // выполнит по очереди
$ node ./app.js && node ./app2.js // выполнит по очереди, но вторая команда выполнится только первая не упадёт

https://askubuntu.com/a/539293
PS https://www.npmjs.com/package/npm-run-all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question