Chaining package.json scripts to start Express server and Vue app Chaining package.json scripts to start Express server and Vue app express express

Chaining package.json scripts to start Express server and Vue app


&& executes commands in series. vue-cli-service serve && cd ../server && npm start won't work as expected because the script stops at vue-cli-service serve until the server is shut down.

For cross-platform script, concurrently or other similar packages can be used to execute commands in parallel:

"serve": "vue-cli-service serve","start": "concurrently \"npm run serve\" \"cd ../server && npm start\""