diff options
author | Rebecca Turner <me@re-becca.org> | 2016-10-07 03:27:39 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-10-07 05:34:21 +0300 |
commit | 0c930ea5717dc1ecfd532cd32889e49a0476b01c (patch) | |
tree | 3e5903728b1558669913c1bfb1471343cf6a04b4 /scripts | |
parent | b3f9bf1ada3f93e6775f5c232350030db6635d0c (diff) |
scripts: Add dep-update & dev-dep-update
Scripts @iarna uses when updating dependencies in npm.
Credit: @iarna
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dep-update | 6 | ||||
-rwxr-xr-x | scripts/dev-dep-update | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dep-update b/scripts/dep-update new file mode 100755 index 000000000..a0aaed7db --- /dev/null +++ b/scripts/dep-update @@ -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 diff --git a/scripts/dev-dep-update b/scripts/dev-dep-update new file mode 100755 index 000000000..6058cce94 --- /dev/null +++ b/scripts/dev-dep-update @@ -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 |