From 4770262171c88b47bf7b772bb252c5e4f0e0db5f Mon Sep 17 00:00:00 2001 From: "Harish.K" Date: Wed, 4 May 2016 10:23:37 +0530 Subject: [PATCH] added Command line wrapper which will use local regisry to install packages --- bin/npm-offline-install | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/npm-offline-install diff --git a/bin/npm-offline-install b/bin/npm-offline-install new file mode 100755 index 0000000..b961bb2 --- /dev/null +++ b/bin/npm-offline-install @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +npm i --registry http://localhost:8234/ $@ diff --git a/package.json b/package.json index 69d2b92..c238238 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "start": "node ./bin/www" }, "bin": { - "npm-offline-registry": "./bin/www" + "npm-offline-registry": "./bin/www", + "npm-offline-install": "./bin/npm-offline-install" }, "repository": { "type": "git",