cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject webworks commit: [CB-4346] changed utils genbarname function to return string as per ticket description, updated README.md section on create command
Date Wed, 24 Jul 2013 19:16:20 GMT
Updated Branches:
  refs/heads/master a057f5bc9 -> dcdbed297


[CB-4346] changed utils genbarname function to return string as per ticket description, updated
README.md section on create command


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

Branch: refs/heads/master
Commit: dcdbed2977d367a6ad1d0215bb9044dbd2a7cb7d
Parents: a057f5b
Author: lorinbeer <lorin@adobe.com>
Authored: Wed Jul 24 12:16:09 2013 -0700
Committer: lorinbeer <lorin@adobe.com>
Committed: Wed Jul 24 12:16:09 2013 -0700

----------------------------------------------------------------------
 blackberry10/README.md        | 11 ++++++++++-
 blackberry10/bin/lib/utils.js |  4 ++--
 2 files changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dcdbed29/blackberry10/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/README.md b/blackberry10/README.md
index 658d372..8091adf 100644
--- a/blackberry10/README.md
+++ b/blackberry10/README.md
@@ -33,10 +33,19 @@ To create a new project, you use the `create` command to set up the folder
struc
 1.  On the command line, navigate to the folder where you extracted Cordova.
 2.  Run the `create` command using the following syntax:
 
-        bin/create <path-to-project>
+        bin/create <path-to-project> <project-package> <project-name>
 
 This command creates the folder structure for your project at the specified location. All
of your project resource files should be stored in the *<path-to-project>*/www folder,
or in a subfolder within it.
 
+where
+
+- '<path-to-project>' specifies the directory you want the project created in
+- '<project-package>' specifies a reverse domain style identifier
+- '<project-name>' specifies the apps display name
+
+*Note*: the create command bootstraps dependency installation through the 'npm install' command.
Depending on installation directory and system permissions, this may require admin privileges.
+If a problem is encountered on OSX/Linux, run 'sudo npm install' before using the create
command. On Windows, run 'npm install' in a command line utility opened with admin privileges.
+
 Adding and managing targets
 ---------------------------
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/dcdbed29/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index f87a781..8a05ddc 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -19,7 +19,7 @@ var fs = require('fs'),
     wrench = require('wrench'),
     localize = require("./localize"),
     os = require('os'),
-    DEFAULT_BAR_NAME = "project",
+    DEFAULT_BAR_NAME = "bb10app",
     PROPERTY_FILE_NAME = 'blackberry10.json',
     CORDOVA_DIR = '.cordova',
     DEFAULT_PROPERTY_FILE = {
@@ -210,7 +210,7 @@ _self = {
     },
 
     genBarName: function() {
-        return "DEFAULT_BAR_NAME";
+        return DEFAULT_BAR_NAME;
     }
 
 };


Mime
View raw message