cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/8] git commit: add firefox platform
Date Thu, 12 Sep 2013 23:33:20 GMT
Updated Branches:
  refs/heads/master de8f5477d -> f56210447


add firefox platform


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

Branch: refs/heads/master
Commit: 0d1aa9be146f2be564e1b2b9c797f70b3165819e
Parents: c775d2a
Author: James Long <longster@gmail.com>
Authored: Wed Aug 14 15:36:16 2013 -0400
Committer: James Long <longster@gmail.com>
Committed: Wed Aug 14 15:36:16 2013 -0400

----------------------------------------------------------------------
 platforms.js                     |  5 +++++
 src/metadata/firefoxos_parser.js | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0d1aa9be/platforms.js
----------------------------------------------------------------------
diff --git a/platforms.js b/platforms.js
index 74d72ec..de2c2be 100644
--- a/platforms.js
+++ b/platforms.js
@@ -46,5 +46,10 @@ module.exports = {
     'www':{
         url    : 'https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-world.git',
         version: '3.0.0'
+    },
+    'firefoxos':{
+        parser: require('./src/metadata/firefoxos_parser'),
+        url    : 'https://github.com/jlongster/cordova-firefoxos.git',
+        version: '3.0.0'
     }
 };

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0d1aa9be/src/metadata/firefoxos_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/firefoxos_parser.js b/src/metadata/firefoxos_parser.js
new file mode 100644
index 0000000..4ef985b
--- /dev/null
+++ b/src/metadata/firefoxos_parser.js
@@ -0,0 +1,19 @@
+var path = require('path');
+
+module.exports = function firefoxos_parser(project) {
+    this.path = project;
+};
+
+module.exports.check_requirements = function(project_root, callback) {
+    callback(false);
+};
+
+module.exports.prototype = {
+    www_dir: function() {
+        return path.join(this.path, 'www');
+    },
+
+    update_project: function(cfg, callback) {
+        callback();
+    }
+};


Mime
View raw message