-
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 ypes to manifest.json, added ExtensionManifest to papi.d.ts so …
…it can have documentation generated, changed a log level
- Loading branch information
1 parent
70b08ab
commit 4a678d8
Showing
4 changed files
with
149 additions
and
66 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
34 changes: 34 additions & 0 deletions
34
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,34 @@ | ||
/** 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 definition 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` | ||
*/ | ||
types?: string; | ||
/** | ||
* List of events that occur that should cause this extension to be activated. Not yet | ||
* implemented. | ||
*/ | ||
activationEvents: string[]; | ||
}; |
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