Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

brunos3d/npm-scripts-shell-param-expansion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-scripts-shell-param-expansion

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

Start Commands

Running only backend

PROJECT_NAME=backend npm run start

Running only frontend

PROJECT_NAME=frontend npm run start

Running all apps

npm run start

Build Commands

Building backend

PROJECT_NAME=backend npm run build

Building frontend

PROJECT_NAME=frontend npm run build

Building all apps

npm run build

Refs

https://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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.