You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/06/04 01:52:24 UTC
webworks commit: [CB-3497] create script now bootstraps npm
dependency install, required to be run as sudo and prompts for system password
Updated Branches:
refs/heads/master 8968d01da -> e4e444d7b
[CB-3497] create script now bootstraps npm dependency install, required to be run as sudo and prompts for system password
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/e4e444d7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/e4e444d7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/e4e444d7
Branch: refs/heads/master
Commit: e4e444d7b60c7f112869173a2ad30f671dd04c4d
Parents: 8968d01
Author: lorinbeer <lo...@adobe.com>
Authored: Mon Jun 3 16:52:11 2013 -0700
Committer: lorinbeer <lo...@adobe.com>
Committed: Mon Jun 3 16:52:11 2013 -0700
----------------------------------------------------------------------
blackberry10/bin/create | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/e4e444d7/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index 87ce4c3..990705b 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -22,4 +22,11 @@
# ./create [path package appname]
#
#!/bin/sh
+
+if ! [ -d ../node_modules ] ; then
+ echo "node dependencies not found. Executing 'sudo npm install'"
+ echo "this will require your system password"
+ sudo npm install
+fi
+
node $( dirname "$0" )"/create.js" "$@"