You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you for your reply. I just gave do.sh a little touch up to suite my tastes, I expect everyone that uses it to do the same.
Does my version replace yours? Does do.sh user base find it better? I don't know. Maybe we wait other people input, and to to see if it gains more traction? Maybe just leave my comment here as a way to link both our projects?
I don't mean to take away the credit for "inventing" this idea by any means. I just want people to be aware of this.
don't mean to
!/bin/bash
, but...superset of sh, is a bit more programmer friendly, having associative arrays and support for pipefail
POSIX compatible, runs on more flavors of UNIX, not really a big deal nowadays
not needed, but fine see https://stackoverflow.com/questions/16365130/what-is-the-difference-between-usr-bin-env-bash-and-usr-bin-bash
use the pipefail Luke!
set -euo pipefail
kool kids do it in one line, add an example, THE ENDING
;
is REQUIREDdeploy() { echo "I am ${FUNCNAME[0]}ing in one line!"; }
for the README
shellcheck yourself before you wreck yourself
a linter for bash scripts
https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck
some nice tips
https://bertvv.github.io/cheat-sheets/Bash.html
a good Make write up
make has a nice auto detection of files changed, and will only build what has changed
https://spin.atomicobject.com/2021/03/22/makefiles-vs-package-json-scripts/
my 1cent
npm run start
has a nagging delay of a few miliseconds, ./run.sh start does not, the article above shows an exampleThe text was updated successfully, but these errors were encountered: