You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2018/12/11 06:36:20 UTC

[cordova-lib] branch master updated: Add Electron Platform (#744)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new a478ce3  Add Electron Platform (#744)
a478ce3 is described below

commit a478ce39b44a957ba1f960f380c75b6353213aa4
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Dec 11 15:36:16 2018 +0900

    Add Electron Platform (#744)
    
    * Add Electron Platform
    * Updated test spec to include Electron
---
 spec/cordova/platforms/platforms.spec.js | 2 +-
 src/platforms/platformsConfig.json       | 6 ++++++
 src/plugman/util/default-engines.js      | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/spec/cordova/platforms/platforms.spec.js b/spec/cordova/platforms/platforms.spec.js
index 943ff17..2d8fc5f 100644
--- a/spec/cordova/platforms/platforms.spec.js
+++ b/spec/cordova/platforms/platforms.spec.js
@@ -38,7 +38,7 @@ describe('platforms/platforms', () => {
 
     it('should have all and only the supported platforms', function () {
         expect(Object.keys(platforms)).toEqual(jasmine.arrayWithExactContents([
-            'android', 'browser', 'ios', 'osx', 'windows'
+            'android', 'browser', 'ios', 'osx', 'windows', 'electron'
         ]));
     });
 
diff --git a/src/platforms/platformsConfig.json b/src/platforms/platformsConfig.json
index e7e8664..3ae3d48 100644
--- a/src/platforms/platformsConfig.json
+++ b/src/platforms/platformsConfig.json
@@ -33,5 +33,11 @@
         "version": "~5.0.1",
         "apiCompatibleSince": "5.0.0",
         "deprecated": false
+    },
+    "electron": {
+        "url": "https://github.com/apache/cordova-electron.git",
+        "version": "~1.0.0",
+        "apiCompatibleSince": "5.0.0",
+        "deprecated": false
     }
 }
diff --git a/src/plugman/util/default-engines.js b/src/plugman/util/default-engines.js
index 6cda6fa..1047043 100644
--- a/src/plugman/util/default-engines.js
+++ b/src/plugman/util/default-engines.js
@@ -35,6 +35,8 @@ module.exports = function (project_dir) {
             { 'platform': 'windows', 'scriptSrc': path.join(project_dir, 'cordova', 'version') },
         'cordova-browser':
             { 'platform': 'browser', 'scriptSrc': path.join(project_dir, 'cordova', 'version') },
+        'cordova-electron':
+            { 'platform': 'electron', 'scriptSrc': path.join(project_dir, 'cordova', 'version') },
         'apple-xcode':
             { 'platform': 'ios', 'scriptSrc': path.join(project_dir, 'cordova', 'apple_xcode_version') },
         'apple-ios':


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org