-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
5,785 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var Bundle = class Bundle { | ||
constructor() {} | ||
|
||
getPath() { | ||
return __dirname; | ||
} | ||
|
||
initialize(app) { | ||
app.on("start", this.onStart); | ||
console.log("Bundle initialized"); | ||
} | ||
|
||
async onStart(app) { | ||
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
|
||
console.log("started"); | ||
|
||
var container = app.getParameter("serviceContainer"); | ||
console.log("Service container:", container); | ||
|
||
var selfService = await container.get("container"); | ||
console.log("Service container from service container:", selfService); | ||
} | ||
}; | ||
exports.default = Bundle; |
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,43 @@ | ||
/* @flow */ | ||
import type Application from "solfegejs/src/Application" | ||
import type {BundleInterface, InitializableBundleInterface} from "solfegejs/src/BundleInterface" | ||
|
||
/** | ||
* Example bundle | ||
*/ | ||
export default class Bundle implements BundleInterface, InitializableBundleInterface | ||
{ | ||
/** | ||
* Constructor | ||
*/ | ||
constructor():void | ||
{ | ||
} | ||
|
||
/** | ||
* Get bundle path | ||
* | ||
* @return {String} The bundle path | ||
*/ | ||
getPath():string | ||
{ | ||
return __dirname; | ||
} | ||
|
||
initialize(app:Application) | ||
{ | ||
app.on("start", this.onStart); | ||
console.log("Bundle initialized"); | ||
} | ||
|
||
async onStart(app:Application, parameters:Array<String> = []) | ||
{ | ||
console.log("started"); | ||
|
||
let container = app.getParameter("serviceContainer"); | ||
console.log("Service container:", container); | ||
|
||
let selfService = await container.get("container"); | ||
console.log("Service container from service container:", selfService); | ||
} | ||
} |
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
Oops, something went wrong.