Skip to content

Commit

Permalink
scripts: Add dep-update & dev-dep-update
Browse files Browse the repository at this point in the history
Scripts @iarna uses when updating dependencies in npm.

Credit: @iarna
  • Loading branch information
iarna committed Oct 7, 2016
1 parent b3f9bf1 commit 0c930ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/dep-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
node . install --save $1@$2 &&\
git add node_modules/$1/ package.json &&\
git commit -m"$1@$2" &&\
node . repo $1 &&\
git commit --amend
6 changes: 6 additions & 0 deletions scripts/dev-dep-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
node . install --save --save-dev $1@$2 &&\
git add package.json &&\
git commit -m"$1@$2" &&\
node . repo $1 &&\
git commit --amend

0 comments on commit 0c930ea

Please sign in to comment.