"//": "Comments here", (IN THE OBJECT CONFIG)
# Comment here \n\t (INLINE SCRIPT)
npm run env
npm run env | grep "^PATH"
npm run env | grep "npm_package" | less
script1 && script2 (IN SERIES)
script1 & script2 (IN PARALLEL)
& wait (NOT FINISH UNTIL CTRL + C)
npm-run-all task:* (optional --parallel flag)
Use | to get the result of the prev task Use > to get the result of the all processes and finish
-s SILENT
-d VERBOSE
-dd MUCH VERBOSE
-ddd EXTREME VERBOSE
npm i cross-env cross-var -D to environment variables
npm i rimraf -D to remove folders
npm i opn-cli -D to open
And prefix conflicts with it
Windows doesn't support singlequote so scape double \"
- Create a script.sh
- Add #!/usr/bin/env bash in the first line
- echo "What your script do.."
- Write the scripts there
- echo "What your script did.."
- Add the reference in the package.json as "task": "./path/script.sh/"