Skip to content

Instantly share code, notes, and snippets.

@whirmill
Last active February 6, 2018 12:06
Show Gist options
  • Save whirmill/88c22165b9b5d549a8095fe3c61d4958 to your computer and use it in GitHub Desktop.
Save whirmill/88c22165b9b5d549a8095fe3c61d4958 to your computer and use it in GitHub Desktop.
#!/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