Skip to content
Permalink
Browse files
Add Electron Platform (#744)
* Add Electron Platform
* Updated test spec to include Electron
  • Loading branch information
erisu committed Dec 11, 2018
1 parent a8a8671 commit a478ce39b44a957ba1f960f380c75b6353213aa4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
@@ -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'
]));
});

@@ -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
}
}
@@ -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':

0 comments on commit a478ce3

Please sign in to comment.