-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Otto class of projector, making room for other classes
- Loading branch information
1 parent
404f44f
commit 15fd988
Showing
23 changed files
with
677 additions
and
625 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './windows'; | ||
export * from './mac'; | ||
export * from './otto'; | ||
export * from './otto/'; |
File renamed without changes.
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,48 @@ | ||
import {ProjectorOtto} from '../projector/otto'; | ||
import {Bundle} from '../bundle'; | ||
|
||
/** | ||
* BundleOtto object. | ||
*/ | ||
export abstract class BundleOtto extends Bundle { | ||
/** | ||
* ProjectorOtto instance. | ||
*/ | ||
public abstract readonly projector: ProjectorOtto; | ||
|
||
/** | ||
* ProjectorOtto constructor. | ||
* | ||
* @param path Output path. | ||
*/ | ||
constructor(path: string) { | ||
super(path); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected async _close(): Promise<void> { | ||
await this._writeLauncher(); | ||
await super._close(); | ||
} | ||
|
||
/** | ||
* Main application file extension. | ||
* | ||
* @returns File extension. | ||
*/ | ||
public abstract get extension(): string; | ||
|
||
/** | ||
* Create projector instance for the bundle. | ||
* | ||
* @returns Projector instance. | ||
*/ | ||
protected abstract _createProjector(): ProjectorOtto; | ||
|
||
/** | ||
* Write the launcher file. | ||
*/ | ||
protected abstract _writeLauncher(): Promise<void>; | ||
} |
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,2 @@ | ||
export * from './windows'; | ||
export * from './mac'; |
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
Oops, something went wrong.