I'd like to make a concise npm script to
- Start a database (npm package), create a db, populate it, and then start an express server.
My current scripts look as followed (I run all 3 after one another)
1) Start db 2) Create db && populate db 3) Start express
I've looked into the npm package concurrently to run these together, but they form a race condition, with action 2 normally occurring before 1.
Is there any nice way to get these to run in the order above, but under one combined npm script?
via Morleee
No comments:
Post a Comment