-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
app://cache/extension-types
for extension type sharing (#659)
- Loading branch information
Showing
5 changed files
with
428 additions
and
86 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
38 changes: 38 additions & 0 deletions
38
src/extension-host/extension-types/extension-manifest.model.ts
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,38 @@ | ||
/** Information about an extension provided by the extension developer. */ | ||
export type ExtensionManifest = { | ||
/** Name of the extension */ | ||
name: string; | ||
/** | ||
* Extension version - expected to be [semver](https://semver.org/) like `"0.1.3"`. | ||
* | ||
* Note: semver may become a hard requirement in the future, so we recommend using it now. | ||
*/ | ||
version: string; | ||
/** | ||
* Path to the JavaScript file to run in the extension host. Relative to the extension's root | ||
* folder. | ||
* | ||
* Must be specified. Can be `null` if the extension does not have any JavaScript to run. | ||
*/ | ||
main: string | null; | ||
/** | ||
* Path to the TypeScript type declaration file that describes this extension and its interactions | ||
* on the PAPI. Relative to the extension's root folder. | ||
* | ||
* If not provided, Platform.Bible will look in the following locations: | ||
* | ||
* 1. `<extension_name>.d.ts` | ||
* 2. `<extension_name><other_stuff>.d.ts` | ||
* 3. `index.d.ts` | ||
* | ||
* See [Extension Anatomy - Type Declaration | ||
* Files](https://github.com/paranext/paranext-extension-template/wiki/Extension-Anatomy#type-declaration-files-dts) | ||
* for more information about extension type declaration files. | ||
*/ | ||
types?: string; | ||
/** | ||
* List of events that occur that should cause this extension to be activated. Not yet | ||
* implemented. | ||
*/ | ||
activationEvents: string[]; | ||
}; |
Oops, something went wrong.