cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [02/50] [abbrv] webworks commit: add plugin script for adding plugins, depends on plugman
Date Tue, 07 May 2013 15:13:49 GMT
add plugin script for adding plugins, depends on plugman

Reviewed by Bryan Higgins <bhiggins@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/6567f47a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/6567f47a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/6567f47a

Branch: refs/heads/future
Commit: 6567f47a32a6c96f5aebd887300a760f0fd9283f
Parents: cd754d0
Author: Hasan Ahmad <haahmad@blackberry.com>
Authored: Mon Mar 18 23:04:00 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Fri May 3 10:13:28 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/plugin  |    7 +++++++
 .../bin/templates/project/cordova/plugin.bat       |    5 +++++
 blackberry10/package.json                          |    3 ++-
 3 files changed, 14 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6567f47a/blackberry10/bin/templates/project/cordova/plugin
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin b/blackberry10/bin/templates/project/cordova/plugin
new file mode 100755
index 0000000..fb7c467
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/plugin
@@ -0,0 +1,7 @@
+#!/bin/sh
+cd $( dirname "$0")/../
+
+if [ "$1" = "add" ]
+    then
+        ./cordova/node_modules/plugman/plugman.js  --platform blackberry10 --project . --plugin
$2
+fi

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6567f47a/blackberry10/bin/templates/project/cordova/plugin.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/plugin.bat b/blackberry10/bin/templates/project/cordova/plugin.bat
new file mode 100755
index 0000000..647412f
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/plugin.bat
@@ -0,0 +1,5 @@
+cd %~dp0\..\
+
+if "%1" == "add" (
+    @node.exe ./cordova/node_modules/plugman/plugman.js --platform blackberry10 --project
. --plugin %2
+)

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6567f47a/blackberry10/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/package.json b/blackberry10/package.json
index 08d0e5e..ed87b2a 100644
--- a/blackberry10/package.json
+++ b/blackberry10/package.json
@@ -19,7 +19,8 @@
     "zip": "0.0.6",
     "xml2js": "0.1.13",
     "validator": "0.4.1",
-    "wrench": "1.3.9"
+    "wrench": "1.3.9",
+    "plugman": "git+https://github.com/blackberry/cordova-plugman.git#master"
   },
   "files": [
     "node_modules",


Mime
View raw message