-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: LSTypeIsPackage for file associations
Closes #995
- Loading branch information
Showing
27 changed files
with
438 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
exports[`test cli 1`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "mac", | ||
"name": "mac", | ||
"nodeName": "darwin", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 2`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "mac", | ||
"name": "mac", | ||
"nodeName": "darwin", | ||
} => Map { | ||
1 => Array [ | ||
"dir", | ||
], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 3`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
1 => Array [ | ||
"dir", | ||
], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 4`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 5`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "win", | ||
"name": "windows", | ||
"nodeName": "win32", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 6`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "mac", | ||
"name": "mac", | ||
"nodeName": "darwin", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
Platform { | ||
"buildConfigurationKey": "win", | ||
"name": "windows", | ||
"nodeName": "win32", | ||
} => Map { | ||
1 => Array [], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 7`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
0 => Array [ | ||
"tar.gz", | ||
], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 8`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
1 => Array [ | ||
"tar.gz", | ||
], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 9`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "linux", | ||
"name": "linux", | ||
"nodeName": "linux", | ||
} => Map { | ||
1 => Array [ | ||
"tar.gz", | ||
], | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`test cli 10`] = ` | ||
Object { | ||
"draft": undefined, | ||
"extraMetadata": undefined, | ||
"prerelease": undefined, | ||
"publish": undefined, | ||
"targets": Map { | ||
Platform { | ||
"buildConfigurationKey": "win", | ||
"name": "windows", | ||
"nodeName": "win32", | ||
} => Map { | ||
1 => Array [ | ||
"tar.gz", | ||
], | ||
}, | ||
}, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
exports[`test repo slug from APPVEYOR 1`] = ` | ||
Object { | ||
"auth": null, | ||
"browsetemplate": "https://{domain}/{user}/{project}{/tree/committish}", | ||
"bugstemplate": "https://{domain}/{user}/{project}/issues", | ||
"committish": null, | ||
"default": "shortcut", | ||
"docstemplate": "https://{domain}/{user}/{project}{/tree/committish}#readme", | ||
"domain": "github.com", | ||
"filetemplate": "https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}", | ||
"gittemplate": "git://{auth@}{domain}/{user}/{project}.git{#committish}", | ||
"httpstemplate": "git+https://{auth@}{domain}/{user}/{project}.git{#committish}", | ||
"pathmatch": /^[\\/]([^\\/]+)[\\/]([^\\/]+?)(?:[.]git)?$/, | ||
"pathtemplate": "{user}/{project}{#committish}", | ||
"project": "travis-build", | ||
"protocols": Array [ | ||
"git", | ||
"http", | ||
"git+ssh", | ||
"git+https", | ||
"ssh", | ||
"https", | ||
], | ||
"protocols_re": /^(git|http|git\\+ssh|git\\+https|ssh|https):$/, | ||
"shortcuttemplate": "{type}:{user}/{project}{#committish}", | ||
"sshtemplate": "git@{domain}:{user}/{project}.git{#committish}", | ||
"sshurltemplate": "git+ssh://git@{domain}/{user}/{project}.git{#committish}", | ||
"treepath": "tree", | ||
"type": "github", | ||
"user": "travis-ci", | ||
} | ||
`; | ||
|
||
exports[`test repo slug from TRAVIS_REPO_SLUG 1`] = ` | ||
Object { | ||
"auth": null, | ||
"browsetemplate": "https://{domain}/{user}/{project}{/tree/committish}", | ||
"bugstemplate": "https://{domain}/{user}/{project}/issues", | ||
"committish": null, | ||
"default": "shortcut", | ||
"docstemplate": "https://{domain}/{user}/{project}{/tree/committish}#readme", | ||
"domain": "github.com", | ||
"filetemplate": "https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}", | ||
"gittemplate": "git://{auth@}{domain}/{user}/{project}.git{#committish}", | ||
"httpstemplate": "git+https://{auth@}{domain}/{user}/{project}.git{#committish}", | ||
"pathmatch": /^[\\/]([^\\/]+)[\\/]([^\\/]+?)(?:[.]git)?$/, | ||
"pathtemplate": "{user}/{project}{#committish}", | ||
"project": "travis-build", | ||
"protocols": Array [ | ||
"git", | ||
"http", | ||
"git+ssh", | ||
"git+https", | ||
"ssh", | ||
"https", | ||
], | ||
"protocols_re": /^(git|http|git\\+ssh|git\\+https|ssh|https):$/, | ||
"shortcuttemplate": "{type}:{user}/{project}{#committish}", | ||
"sshtemplate": "git@{domain}:{user}/{project}.git{#committish}", | ||
"sshurltemplate": "git+ssh://git@{domain}/{user}/{project}.git{#committish}", | ||
"treepath": "tree", | ||
"type": "github", | ||
"user": "travis-ci", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
exports[`test extra metadata 1`] = ` | ||
Object { | ||
"author": "Foo Bar <[email protected]>", | ||
"build": Object { | ||
"appId": "org.electron-builder.testApp", | ||
"compression": "store", | ||
"electronVersion": "1.4.12", | ||
"iconUrl": "https://raw.githubusercontent.com/szwacz/electron-boilerplate/master/resources/windows/icon.ico", | ||
"linux": Object { | ||
"category": "Development", | ||
"packageCategory": "devel", | ||
}, | ||
"mac": Object { | ||
"category": "your.app.category.type", | ||
}, | ||
"npmRebuild": false, | ||
}, | ||
"description": "Test Application (test quite \" #378)", | ||
"foo": Object { | ||
"bar": 12, | ||
"existingProp": 22, | ||
}, | ||
"homepage": "http://foo.example.com", | ||
"license": "MIT", | ||
"name": "TestApp", | ||
"private": true, | ||
"productName": "Test App ß/W", | ||
"version": "1.1.0", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
exports[`test link 1`] = ` | ||
Object { | ||
"link": "index.js", | ||
} | ||
`; |
Oops, something went wrong.