Last active
May 18, 2017 03:53
-
-
Save wtfaremyinitials/a44ffad99f8e1b3c6edae1fc4bf4d05a to your computer and use it in GitHub Desktop.
Alternative to `yarn run` that doesn't spin up a node process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CMD=$(jq -r .scripts.$1 < package.json) | |
echo -e '\033[37m$ '$CMD'\033[39m' | |
PATH=$PATH:./node_modules/.bin eval "$CMD" | |
echo -e '\xe2\x9c\xa8 Done.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment