This is just a study repo about npm scripts and bash parameter expansion, it contains some examples of using env-vars as scripts, it also includes concurrently to run all scripts.
I created it to understand some behaviours of npm scripts and use it with Nx monorepos and heroku
Running only backend
PROJECT_NAME=backend npm run startRunning only frontend
PROJECT_NAME=frontend npm run startRunning all apps
npm run startBuilding backend
PROJECT_NAME=backend npm run buildBuilding frontend
PROJECT_NAME=frontend npm run buildBuilding all apps
npm run buildhttps://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html https://stackoverflow.com/questions/2013547/assigning-default-values-to-shell-variables-with-a-single-command-in-bash