forked from do
- No installation
- No dependencies
- No overhead (npm scripts have a nagging delay of a few miliseconds)
Copy run.sh
to your project, customize it as needed.
Optional: add an alias
echo "alias run='./run.sh'" >> ~/.bash_aliases
source ~/.bashrc
$ ./run.sh build
I am building
$ run deploy a b c
I am deploying with Arg 1=a Arg 2=b and Arg 3=c
- maintain a reusable set of util functions for your projects
- consider zx for node projects with more complex builds
- consider make vs package json scripts, it has a nice auto detection of files changed, and will only build what has changed
- bash cheat sheet