Skip to content

Instantly share code, notes, and snippets.

@miclgael
Created June 1, 2022 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miclgael/71690d85d4b25c8783de80cc612caf8d to your computer and use it in GitHub Desktop.
Save miclgael/71690d85d4b25c8783de80cc612caf8d to your computer and use it in GitHub Desktop.
Package manager-agnostic dev command
# 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