Created
June 1, 2022 00:19
-
-
Save miclgael/71690d85d4b25c8783de80cc612caf8d to your computer and use it in GitHub Desktop.
Package manager-agnostic dev command
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
# Package manager-agnostic dev command | |
# 1. Add to your ~/.bashrc or ~/.zshrc file | |
# 2. Just type `dev` | |
dev() { | |
if [ -e yarn.lock ] | |
then | |
yarn run dev | |
else | |
npm run dev | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment