Last active
February 6, 2018 12:06
-
-
Save whirmill/88c22165b9b5d549a8095fe3c61d4958 to your computer and use it in GitHub Desktop.
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/sh | |
# requires jq to work | |
cat package.json | jq ".dependencies" | jq "keys[]" | xargs echo | xargs -i echo 'add {}' | xargs yarn && \ | |
cat package.json | jq ".devDependencies" | jq "keys[]" | xargs echo | xargs -i echo 'add {} --dev' | xargs yarn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment