Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2016-10-07 03:27:39 +0300
committerRebecca Turner <me@re-becca.org>2016-10-07 05:34:21 +0300
commit0c930ea5717dc1ecfd532cd32889e49a0476b01c (patch)
tree3e5903728b1558669913c1bfb1471343cf6a04b4 /scripts
parentb3f9bf1ada3f93e6775f5c232350030db6635d0c (diff)
scripts: Add dep-update & dev-dep-update
Scripts @iarna uses when updating dependencies in npm. Credit: @iarna
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dep-update6
-rwxr-xr-xscripts/dev-dep-update6
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