ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

Tips for setting up your package.json scripts


#1

Concurrent running of scripts during deploys

Options include:

  1. Simple bash script, if you don’t want to add any more dependencies
  2. Use the Concurrently NPM Package.
  3. Use Kent Dobbs nps with nps-utils. Or use nps with option 2, concurrently.

I’d highly suggest using nps regardless. It’s great for organizing lots of package.json scripts.

Here’s that simple bash script: